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

Unix/Linux
基础篇:find技巧1
基础篇:find技巧2
对shutdown,halt,reboot,init的一点理解
grep的使用
多个文件函数互相引用的编译操作
SLES 相关的若干问题
精品推荐:命令大集合[分类整理]
红旗桌面版5.0(Code Name是Apatite)将在8月中旬发布第一个Snapshot版本
创建VLAN
VRRP
代理ARP
用iptables构建DMZ防火墙
netstat 使用详解
刚刚安装好php与apache,现将
外贸英语900句 之 价格Price
First use Linux
Linux下wu-ftpd的配置使用指南
Fc2下五笔输入法的问题
ProFTP配置文件
一步到位的 LAMP 安装脚本 (AMP部分)

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


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2010-01-15   浏览: 120 ::
收藏到网摘: 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
输入密码
如果没有出现其它的任何提示就表示登录成功了,否则要根据提示进行相应的修改。