首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > VSTS >

设立 cvs 服务器

2012-07-26 
设置 cvs 服务器一、安装命令:sudo apt-get install cvssudo apt-get install xinetd 安装过程中,Ubuntu会

设置 cvs 服务器
一、安装命令:
sudo apt-get install cvs
sudo apt-get install xinetd
安装过程中,Ubuntu会自动初始化cvs,缺省位置:/var/lib/cvs,若想改变可执行命令:
cvs -d /your/new/cvs/repo init

二、利用系统的超级服务器xinetd启动cvs服务器:
创建配置文件:/etc/xinetd.d/cvspserver
内容如下:
service cvspserver
{
port = 2401
socket_type = stream
protocol = tcp
user = root
wait = no
type = UNLISTED
server = /usr/bin/cvs
server_args = -f --allow-root /var/lib/cvs pserver
disable = no
}

三、(此部是可选的)用cvs check out出来$CVSROOT/CVSROOT,编辑该目录下的配置文件,然后commit回去:
passwd//类似的口令文件,缺省没有,使用系统的用户名和口令验证。
readers//只读用户
writers//具备写权限的用户
cvswrappers//指定二进制文件,如:*.jar -k 'b'

四、保证cvs客户端的登录用户对服务器的CVSROOT目录具有写权限,即可用命令cvs import向存储库提交项目。

热点排行