真正做起來開發(fā)工作,才發(fā)現(xiàn)一臺(tái)CVS服務(wù)器是必不可少的,即使是很少的開發(fā)人員的項(xiàng)目,使用CVS也會(huì)起到很大的作用,具體什么作用,大家去體會(huì):)
下面把我架設(shè)CVS服務(wù)器的過程說說,和諸位前輩的不同之處在于我架設(shè)了一個(gè)WEB界面,所以說是"友好的",通過WEB界面可以非常直觀的瀏覽代碼,查看圖形化的修改記錄,(提交可以log到MySQL數(shù)據(jù)庫--This feature is a clone of the Mozilla Projects Bonsai database.),目前SourceForge正在使用此界面的較低版本.
功能簡介:
1:Base CVS Server;
2:repository browsing.
3:SQL checkin database.
4:Colorize sourcecode.
5:Can display a clickable, graphical of files in a CVS repository.
6:generate tarball from a repository on the fly.
OK,Lets go!
1:初始化環(huán)境
#groupadd cvs
#mkdir /home2/cvsroot
#useradd -g cvs -G cvs -d /home2/cvsroot cvsroot
#su - cvsroot
$chmod 775 .
OK!
2:啟動(dòng)CVS Server
諸位大蝦已經(jīng)有了很精辟的說明,拿來是了!:P
#more /etc/services|grep cvspserver
cvspserver 2401/tcp # CVS client/server operations
cvspserver 2401/udp # CVS client/server operations
OK,RedHat系統(tǒng)不傻,可以寫腳本了.
#vi /etc/xinetd.d/cvspserver
service cvspserver
{
disable = no
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/bin/cvs
server_args = -f --allow-root=/home2/cvsroot pserver
log_on_failure += USERID
}
:wq
#ls /etc/xinetd.d/cvspserver
/etc/xinetd.d/cvspserver
腳本好了!
#su - cvsroot
$cvs -d /home2/cvsroot init
#service xinetd restart
看看有沒有?
#netstat -l |grep cvspserver
tcp 0 0 *:cvspserver *:* LISTEN
Great!
3:Add a Web Interface,viewcvs-0.9.2
URL:http://viewcvs.sourceforge.net/
要求比較個(gè)性,很多很多!列表:
a:
Python 1.5 or later(http://www.python.org/)
Rh7.2竟然有兩個(gè)python,1.5和2.1,更加有個(gè)性!
b:
RCS, Revision Control System(http://www.cs.purdue.edu/homes/trinkle/RCS/)
Rh7.2自帶.
c:
read-only, physical aclearcase/" target="_blank" >ccess to a CVS repository(See http://www.cvshome.org/ for more information)
Rh7.2自帶.
d:
a web server capable of running CGI programs(for example, Apache at http://httpd.apache.org/)
viewcvs-0.9.2文檔竟然說apache是可選項(xiàng)