CVS配置手记
1、检查系统是否已经安装了cvs包,没有就是用下面命令安装
$rpm -qa |grep cvs $./configure
$make $make install 2、创建CVS组和用户
$groupadd cvs $useradd cvsroot -g cvs 3、查看配置文件
$grep cvspserver /etc/services 查看是否有以下服务,如果没有加上去。 cvspserver 2401/tcp #CVS client/server operations cvspserver 2401/udp #CVS client/server operations 4、创建启动脚本
$vi /etc/xinetd.d/cvspserver service cvspserver
{ disable = no port = 2401 flags = REUSE socket_type = stream wait = no user = root server = /usr/bin/cvs server_args = -f --allow-root=/home/cvsroot pserver #log_on_failure += USERID protocol = tcp } server 指定CVS可执行文件路径,默认安装就是/usr/bin/cvs
pserver 密码认证方式,客户端使用时有此选择 注意上面文件每行等号左右都有一个空格,否则无法启动服务而且没有明确的错误信息。 5、初始化CVS
创建cvsroot目录 $mkdir /home/cvsroot $cvs -d /home/cvsroot init 6、启动CVS
/etc/init.d/xinetd restart 7、检查cvspserver服务是否已经启动
$netstat -l |grep cvspserver 应该有如下结果: tcp 0 0 *:cvspserver *:* LISTEN 8、登录
cvs -d :pserver:cvsroot@localhost:/cvsroot login 输入正确密码,如果没有出现其它的提示就表示登录成功。 9、通过windows客户端进行其他操作 本文出自 51CTO.COM技术博客 |


marsren
博客统计信息
热门文章
最新评论
友情链接