在/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/转载保留:http://www.qqread.com/linux/2006/08/p865195061.html
相关图文阅读
频道图文推荐
健 康 咨 询
时 尚 咨 询
相关专题
- 实用技巧:配置Linux操作系统环境变量 (30次浏览)
- 安装qmail全套功略 (18次浏览)
- TurboLinux 入门教程:第七课 TurboLinux简介 (18次浏览)
- Linux系统管理员秘技:用快捷命令一招制胜 (18次浏览)
- Linux系统命令分类详解 (1) (18次浏览)
- Linux下使用aMsn详解 (18次浏览)
- 你会在Linux下用POP3收Web电子邮箱吗? (18次浏览)
- 在Linux中用三款工具轻松制作网页 (18次浏览)
- Linux上的偷窺裝置 (1394的使用) (18次浏览)
- 深入浅出分析Linux内核漏洞的问题 (18次浏览)



