当前位置: 首页 > 图文教程 > 操作系统 > Unix/Linux > Linux系统下配置CVS服务器

Unix/Linux
Linux的使用
Linux下的软件安装
Linux下的硬件安装
Linux学习基础
Linux学习指导
Linux值得信任吗?
Linux 管理员手册(2)
Linux 管理员手册(3)
Linux 管理员手册(4)
Linux 管理员手册(5)
Linux 管理员手册(6)
Linux 管理员手册(7)
Linux 管理员手册(8)
Linux 管理员手册(9)
Linux新技术对象存储文件系统
Linux系统文件命令精通指南
Linux基础知识99问(五)
Linux基础知识99问(四)
Linux基础知识99问(三)
Linux基础知识99问(二)

Unix/Linux 中的 Linux系统下配置CVS服务器


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2010-01-15   浏览: 31 ::
收藏到网摘: n/a

1,安装好CVS服务器rpm -ivh cvs-1.12.9.i386.rpm 配置过程如下
2,启动CVS服务.Linux上CVS服务可以通过inetd,xinetd或tcpwrapper等来启动。现在使用xinetd启动CVS服务。
3,配置/etc/services文件
[root@fp71g /]# vi /etc/services
在services文件中添加cvspserver,使其成为Linux的一种服务也就是CVS服务器例程的入口,配置如下:
cvspserver      2401/tcp   # CVS client/server operations
cvspserver      2401/udp   # CVS client/server operations
4,在/etc/xinetd.d目录下为CVS服务创建一个配置文件vi etc/xinetd.d/cvspserver
[root@fp71g /]# vi /etc/xinetd.d/cvspserver
内容如下:
service cvspserver{
  socket_type = stream
  wait = no
  user = root
  env = HOME =
  server = /usr/bin/cvs
  server_args = -f --allow -root=/home/cvsroot pserver
}
5,配置CVS用户与cvsroot组
建立CVS组
[root@fp71g /]# groupadd CVS
建立CVS组内的用户
[root@fp71g /]# useradd -g CVS user3
[root@fp71g /]# useradd -g CVS user2
设置user3密码
[root@fp71g /]# passwd user3
[root@fp71g /]# chown user3 /home/cvsaaa
[root@fp71g /]# chmod 771 /home/cvsaaa
6,在server端初始化仓库目录/home/cvsaaa
[root@fp71g /]# mkdir /home/cvsaaa
[root@fp71g /]# cvs -d /home/cvsaaa init
这时在/home/cvsaaa目录下会出现一下CVSROOT目录
7,[root@fp71g /]# setup
在system service中选中cvspserver
重启xinetd
[root@fp71g /]# /etc/init.d/xinetd restart
停止 xinetd:                               [  确定  ]
启动 xinetd:                               [  确定  ]
用netstat -l 命令查看正在工作的网络端口有没有如下这条信息:
tcp     0   0 *:mysql      *:*              LISTEN
tcp     0   0 *:cvspserver *:*              LISTEN
有就OK,没有找CVS安装及启动的问题
8,登录CVS服务器(在Linux,unix系统下进行登录)
# cvs -d :pserver:[email protected]:/home/cvsroot/ login
输入密码
如果没有出现其它的任何提示就表示登录成功了,否则要根据提示进行相应的修改。