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

Unix/Linux
linux查看内存的大小
在linux下写的代码,用的是utf-8,结果拿到XP下运行的时候,所有的中文都成乱码
linux su和sudo命令的区别
linux cron 下的定时执行工具使用技巧
linux 查找进程及终止进程操作的相关命令
redhat linux 安装 gcc编译器
Linux Mplayer播放各种格式的电影
一起回顾一下linux常用命令
Linux 网站项目发布要做哪些配置
linux SSH配合SecureCRT的密匙完美使用方法
GD 编译出错解决方法
Facebook Open Platform编译FAQ
Linux 系统硬盘 优化
linux 挂载详解
linux crontab定时命令
Linux 系统中确保访问三级域名畅通的方法
Linux 特权帐号VS普通帐号
确保Linux系统安全的前提条件 漏洞防护
Linux 监视系统资源使用率
Red Hat Linux上使用BIND建立DNS服务器

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


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