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

Unix/Linux
Linux crontab定时执行任务 命令格式与详细例子
linux 查看用户及用户组的方法
让Linux系统有效防御ARP攻击的实用技巧
Linux 常用软件列表
linux wget 一个强大的下载命令
linux 常用脚本、命令
linux 磁盘配额 简单介绍
Linux服务器架设笔记 Squid服务器配置
ubuntu intel 集成显卡安装
ubuntu 9.04 X3100 显卡开启3D特效
Ubuntu 8.10 Server Ruby 的安装方法
Ubuntu root帐户密码修改
ubuntu下apt-get 命令参数
Ubuntu Linux下实现QQ的三种方式
Ubuntu 8.04中建立PHP+MySQL环境
Ubuntu常用软件大全
Ubuntu系统下安装Aircrack-ng
Ubuntu实现FTP功能
ubuntu 字体美化实现方法
ubuntu下netbeans汉字显示残缺问题

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


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