前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >liunx安装cvs

liunx安装cvs

作者头像
BUG弄潮儿
发布2022-06-30 14:49:14
1.1K0
发布2022-06-30 14:49:14
举报
文章被收录于专栏:JAVA乐园

1、 安装xinetd

rpm –ivh xinetd-2.3.14-10.el5.i386

2、 查看是否安装了cvs

rpm –qa | grep cvs

3、 卸载cvs

rpm -e cvs-1.11.22-5.el5

4、 解压cvs

tar -jxvf cvs-1.11.22.tar.bz2

5、 进入cvs-1.11.22目录

cd cvs-1.11.22

6、 安装cvs

./configure

make

make install

7、 添加cvs组合cvsroot用户(密码为cvsroot)

groupadd cvs

useradd -g cvs -d /home/cvsrootcvsroot

passwd cvsroot

8、 登陆cvsroot用户并创建仓库

su - cvsroot

mkdir /home/cvsroot/cvsrepos

cvs -d /home/cvsroot/cvsrepos init

9、 在cvsroot用户的.bash_profile文件中添加export CVS_RSH=ssh

vi .bash_profile

source .bash_profile

10、 使用root用户在目录/etc/profile.d添加如下两个文件cvs.sh和cvs.csh,同时修改权限

cd /etc/profile.d

cvs.sh的内容

export CVS_RSH=ssh

cvs.csh的内容

setenv CVS_RSH ssh

chmod 755 cvs.sh

chmod 755 cvs.csh

11、 使用root用户在/etc/xinetd.d增加cvs文件,内容如下

service cvspserver

{

disable = yes

socket_type = stream

protocol = tcp

wait = no

user = root

server = /usr/bin/cvs

server_args = -f --allow-root=/home/cvsroot/cvsrepospserver

}

12、 使用cvsroot用户在.ssh目录创建 authorized_keys文件(用户的添加就是往authorized_keys文件中添加公钥)

mkdir .ssh

cd .ssh

cat id_rsa.pub >>authorized_keys

13、 在eclipse配置ssh和访问cvs

本文参与 腾讯云自媒体同步曝光计划,分享自微信公众号。
原始发表:2018-01-11,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 BUG弄潮儿 微信公众号,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档