cvs 在/etc/services文件中有如下的两行,这是配置服务的:
cvspserver 2401/tcp # CVS client/server operations cvspserver 2401/udp # CVS client/server operations
然后如果是使用inetd来启动,那么需要修改修改/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/
|