FreeBSD下建立CVS服务器

1.建立CVS用户和组
#adduser
Enter username [a-z0-9_-]: cvs
Enter full name []: CVS User
Enter shell bash csh date no sh tcsh [sh]:
Enter home directory (full path) [/home/cvs]:
Uid [1003]:
Enter login class: default []:
Login group cvs [cvs]:
Login group is ``cvs''. Invite cvs into other groups: guest no
[no]: 
Enter password []:
Enter password again []:
Name: cvs
Password: ****
Fullname: CVS User
Uid: 1003
Gid: 1003 (cvs)
Class:
Groups: cvs
HOME: /home/cvs
Shell: /bin/sh
OK? (y/n) [y]: 
Added user ``cvs''
Add another user? (y/n) [y]: n
上面就是添加了一个属于组 cvs的用户 cvs,具体情况可能跟上面显示的不太一样,但目的达到就可以了。

2.建立CVS仓库
选择目录 /exports/cvsroot作为 CVS仓库。现在 /usr下建立目录 cvsroot,做个链接到根目录 /下。
#mkdir /export/cvsroot
#cd /
#ln -s /export/cvsroot /cvsroot

3、初始化 CVS仓库
#su cvs
$cvs -d /export/cvsroot init


4、运行服务
/etc/services中,检查 Pserver服务端口。
cvspserver 2401/tcp #CVS network server

/etc/inted.conf中开启 Pserver服务。
cvspserver stream tcp nowait root /usr/bin/cvs cvs --allow-root=/cvsroot pserver 

5. 重新启动inetd
#/etc/rc.d/inetd restart
CVS服务器就建立好了。


6.cvs用户的添加
使用useradd建立用户,更改用户到cvs组
pw usermod -n username -g cvs






  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值