查看文章 |
安装cvs 下载地址: http://www.zhuicha.com/zhuicha/onlineHB/linuxcmd/index.html linux软件包下在: http://tech.huobao0911.com/k4/k23/200706/47130.html http://ftp.gnu.org/pub/gnu/gcc/gcc-4.0.0/ CVS安装及权限分配 2.安装过程
2.1 解压#tar xvf cvsnt-2.5.03.2151-rh9-rpm.tar.tar 2.2 包的安装rpm -ivh cvsnt-2.5.03.2151-1.i386.rpm 2.3 建立Repository目录groupadd cvs useradd -G cvs cvsroot mkdir /home/cvsroot chown -R cvsroot.cvs /home/cvsroot
/etc/xinetd.d/ cvspserver service cvspserver { disable = no socket_type = stream wait = no port =2401 user = root env = HOME = server = /usr/bin/cvs server_args = -f --allow -root=/home/cvshome pserver } 重起#service xinetd restart 使配置生效。 2.4 设置环境变量#vi .bash_profile 加入一行CVSROOT=:pserver:cvsroot@192.168.1.29:/home/cvsroot *pserver是访问方式,口令认证的意思,这是最常用的方式,其他还有gserver,kserver,ext 你可以把设置放到你的shell的profile里(.bash_profile,.profile等)这样就不用每次敲一长串命令了 2.5 验证配置成功#cvs login,输入密码看时候能成功登录 2.6 初始化repositorycvs -d /home/cvsroot init 2.7 CVS使用流程
|
|
userpro7mo |
R |
w |
|
Test1 |
Y |
Y |
|
Test2 |
Y |
Y |
|
Test3 |
Y |
N |
|
cvsrootproj7 |
R |
w |
|
Test1 |
Y |
Y |
|
Test2 |
Y |
N |
|
Test3 |
N |
N |

