摘要: 简叙 cvs 安装使用
cvs 是个经常使用的东西, 启动也很简单, 把步骤记录一下, 免得忘记掉.
建用户及组
$ su # apt-get install cvs # mkdir /usr/cvsroot # groupadd cvs # useradd -g cvs -G cvs -d /usr/cvsroot cvsroot # useradd -G cvs cvspub
假如使用 xinetd , 在 /etc/xinetd.d/cvspserver 中写入:
service cvspserver
{
disable = no
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/bin/cvs
server_args= -f -allow-root=/usr/cvsroot pserver
log_on_failure += USERID
}
然后运行: service xinetd restart如果使用 inetd, 则在 /etc/inetd.conf 中添加:
cvspserver stream tcp nowait root /usr/bin/cvs -f -allow-root=/usr/cvsroot pserver然后运行: /etc/init.d/inetd restart
确定是否运行: netstat -lnp | grep 2401
建库
# export CVSROOT=/usr/cvsroot # cvs init
建立 cvs 用户
# cd /usr/cvsroot/CVSROOT # touch readers 一维的用户列表, 其中用户只有读权限.(优先) # touch writer 一维的用户列表, 其中用户可有写权限. # touch passwd(密码表, 格式如下) 用户名:加密的口令(和shadow中一样):等效用户名(可用 cvspub)
记录一些小技巧在这.
连上 windows 中的 cvs 服务器.
不同的 cvs 版本有不同的表现, 可以多试几次.
很多 cvs 服务器在 windows 机器上建立, 由于各种软件的限制, CVSROOT 有时
设置成了绝对路径, 如 c:\cvsroot.
那么在 cvs 客户端中设置 CVSROOT 时需要注意一下:
有的需要设置成 :pserver:user@website:c:/cvsroot
有的则要设置成 :pserver:user@website:/c//cvsroot
发表于 @ 2004年10月25日 18:04:00 | 评论( loading... ) | 举报| 收藏