cvspserver 2401/tcp # CVS client/server operations
cvspserver 2401/udp # CVS client/server operations
然后如果是使用.netd來啟動,那么需要修改修改/etc/inetd.conf文件,
如果使用xinetd,那么就需要在/etc/xinetd.d/目錄下加入一個啟動cvs的腳本
我的系統使用的是red hat7.0,所以就加入如下的腳本到/etc/xinetd.d/下
[root@local /]# less /etc/xinetd.d/cvspserver
# default: off
# description: The SPOP3 service allows remote users to access their mail \
# using an POP3 client with SSL support such as Netscape \
# Communicator or fetchmail.
service cvspserver
{
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/bin/cvs
server_args = --allow-root=/source pserver
log_on_success += USERID
log_on_failure += USERID
disable = no
}
如果使用inetd,也可以修改inetd.conf,很簡單的。
完成這些之后,就可以重新啟動inetd/xinetd了。
然后執行cvs的命令就可以正常使用cvs了。
不過需要注意的是遠程使用需要設置一下客戶機:
CVSROOT=:pserver:user@host:/cvsrootdir:
export CVSROOT
cvs login
需要將前面兩句加入到你的啟動腳本中去。
如果還有什么問題,請訪問http://www.cvshome.org/docs/manual/
文章來源于領測軟件測試網 http://www.kjueaiud.com/