Install cvs on Redhat Linux9

Modified at $Date: 2005/03/09 07:24:56 $

Install cvs on Redhat Linux9

cvs server doesn't work even we restart xinetd several times, port 2401 is not available. We check everything and they are ok, finally we find that there is something wrong in the configuration file. The format of the file is incorrect.

File: /etc/xinetd.d/cvspserver

There must be a space around "=" and a tab before the option. Or cvs server can't work, port 2401 won't be opened.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
CentOS 7 操作系统默认是不带 CVS 工具的,需要使用 yum 命令进行安装,步骤如下: 1. 执行以下命令,升级 CentOS 7 中的所有包: ```bash sudo yum update ``` 2. 安装 CVS: ```bash sudo yum install cvs ``` 3. 安装完成后,可以使用以下命令验证是否安装成功: ```bash cvs --version ``` 4. 如果出现版本号等信息,则说明 CVS 成功安装。 在安装 CVS 的过程中,有时候需要进行身份认证,可以通过以下步骤操作: 1. 创建账户: ```bash sudo useradd -m cvsuser sudo passwd cvsuser ``` 2. 切换到 root 用户,编辑 /etc/xinetd.d/cvs 文件,修改其中的 "disable = yes" 为 "disable = no": ```bash sudo su cd /etc/xinetd.d/ vi cvs ``` 3. 在文件中添加以下内容: ```bash service cvs { disable = no socket_type = stream wait = no user = root log_on_success += DURATION USERID log_on_failure += USERID server = /usr/bin/cvs server_args = -f --allow-root /cvsroot pserver } ``` 4. 切换到 cvsuser 用户,编辑 /etc/passwd 文件,在第一行添加以下内容: ```bash cvsuser:x:510:511::/home/cvsuser:/bin/bash ``` 5. 创建 /cvsroot 目录,并赋予所有用户读写权限: ```bash sudo mkdir /cvsroot sudo chmod 0777 /cvsroot ``` 6. 切换回 root 用户,启动 xinetd 服务: ```bash sudo service xinetd restart ``` 7. 验证是否成功: ```bash cvs -d :pserver:cvs[email protected]:/cvsroot login ``` 8. 输入 cvsuser 用户的密码即可完成身份认证。

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值