在/etc/services文件中有如下的兩行,這是配置服務的:
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/
版權所有(C) 2003-2010 TestAge(領測軟件測試網)|領測國際科技(北京)有限公司|軟件測試工程師培訓網 All Rights Reserved
北京市海淀區中關村南大街9號北京理工科技大廈1402室 京ICP備2023014753號-2
技術支持和業務聯系:info@testage.com.cn 電話:010-51297073
老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月