在Linux下安装CVS服务

1、检查是否安装了cvs服务
# rpm -q cvs
# 如果没有安装,执行yum install cvs


2、检查是否安装了xinetd服务
# rpm -q xinetd
# 如果没有安装,执行yum install xinetd


3、创建cvs用户组
# groupadd cvs


4、创建cvsroot用户并修改密码
# useradd -g cvs cvsroot
# passwd cvsroot


5、修改cvs 配置文件
配置文件是/etc/xinetd.d/cvs
CentOS 7 没有这个文件,要自己创建,内容如下:
# default: off
# description: The CVS service can record the history of your source \
#              files. CVS stores all the versions of a file in a single \
#              file in a clever way that only stores the differences \
#              between versions.
service cvspserver
{
disable                 = no
port                    = 2401
socket_type             = stream
protocol                = tcp
wait                    = no
user                    = root
passenv                 = PATH
server                  = /usr/bin/cvs
env                     = HOME=/var/cvs
server_args             = -f --allow-root=/var/cvs pserver
#       bind                    = 127.0.0.1
}
server_args 指定源代码库路径及认证方式,/var/cvs为源代码的路径,pserver为密码认证
disable改变no为yes


6、初始化cvs服务
# cvs –d /var/cvs init


7、重启xinetd服务
service xinetd restart


8、给cvs目录授权
chown -R cvsroot:cvs /var/cvs

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值