总论性的文章:http://woodyhuang.iteye.com/blog/1485754
具体操作:
1 安装gitweb
(1)安装Apache网络服务器
sudo apt-get install apache2
(2)安装Gitweb
$ sudo apt-get install gitweb
gitweb.cgi 脚本安装在 /usr/lib/cgi-bin/ 中,该目录为默认 ubuntu 上 apache2 的 cgi-bin 目录。所以,打开:http://127.0.0.1/cgi-bin/gitweb.cgi