seteuid0's blog
Themed by Diary.
[zz]cgit安装部署

 [how to] 如何在ubuntu上安装cgit分类: git2010-07-03 16:38 1688人阅读 评论(0) 收藏 举报ubuntuapachedeb工具gitcss   cgit 是一种git 代码浏览工具,类似gitweb ,但是更快速,openembedded ,freedeskop 等项目都在采用cgit。我就尝试在我的ubuntu 10.04安装了cgit,感觉不错。步骤如下:安装cgit两种选择:1 直接用deb二进制包安装,点击这里 去下载                  2 编译源代码,参考官方readme安装apache2假设你的DocumentRoot 是/var/www$ sudo mkdir /var/www/cgit$ sudo cp /usr/share/cgit/cgit.css /var/www/cgit$ sudo cp /usr/share/cgit/cgit.pnf /var/www/cgit建立一个cgit配置文件在/etc/apache2/conf.d/目录下面[cpp] view plaincopyalias /cgit /var/www/cgit    <Directory “/var/www/cgit/">        AllowOverride None        Options ExecCGI        DirectoryIndex /cgi-bin/cgit.cgi        Order allow,deny        Allow from all       cgit 配置文件cgitrc在/etc下面[c-sharp] view plaincopycss=/cgit/cgit.css  logo=/cgit/cgit.png  repo.url=cgit.git  repo.path=/home/lynn/cgit.git  repo.desc=demo  repo.owner=lynn  重启apache2然后打开  http://localhost/cgit 就可以了