温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

liunx如何安装cvs

发布时间:2021-11-26 11:27:28 来源:亿速云 阅读:126 作者:小新 栏目:大数据

这篇文章将为大家详细讲解有关liunx如何安装cvs,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。

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

liunx如何安装cvs

关于“liunx如何安装cvs”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,使各位可以学到更多知识,如果觉得文章不错,请把它分享出去让更多的人看到。

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI