apache+subversion前面已介紹過,這裏只介紹ViewVC
ViewVC (前身是ViewCVS)是CVS和SVN版本控制系統的Web瀏覽界面,使用 ViewVC可以瀏覽版本庫中的目錄/文件、以及每個文件的歷史版本記錄等,同時還可以顯示和下載文件等操作。
下載wget http://viewvc.tigris.org/files/documents/3330/48879/viewvc-1.1.10.tar.gz
tar -zxvf viewvc-1.1.10.tar.gz
cd viewvc-1.1.10
./viewvc-install
Installing ViewVC to /home/yuchunyun/src/viewvc:
cd /home/yuchunyun/src/viewvc/
vi viewvc.conf
[general]
root_parents = /home/yuchunyun/data/svn : svn
default_root = yuchunyun
vi /home/yuchunyun/src/apache/conf/httpd.conf
ScriptAlias /viewvc /home/yuchunyun/src/apache/cgi-bin/viewvc.cgi
<Location /viewvc>
#AllowOverride None
AuthUserFile /home/yuchunyun/data/passwd
AuthName "ViewVC Client Access"
AuthType Basic
require valid-user
</Location>
/home/yuchunyun/src/apache/bin/httpd -k restart