分页: 2 / 2

Re: Ubuntu下CVS服务器的搭建

发表于 : 2009-08-26 10:56
zuiaixiaohu
我跟楼上的一样,找了好多资料都不成阿。

Re: Ubuntu下CVS服务器的搭建

发表于 : 2009-11-08 2:38
cmhost.cn
hahsuu 写了:em20
求助:按照1楼的方法在9.04服务器版上安装,始终提示“Connection refused”,用netstat -l查看也没有2401监听端口。希望各位给以帮助。
sudo gedit /etc/cvsd/cvsd.conf
change line: Listen * 2401
to this: Listen 0.0.0.0 2401


参考:http://www.oklinux.cn/html/network/ser/ ... 73693.html

Re: Ubuntu下CVS服务器的搭建

发表于 : 2010-04-29 20:31
droidfan
我按照这个上面的做了

使用这个命令测试的时候
cvs -d :pserver:[email protected]:8080/home/cvsroot/myrepos login
,一直报这个错误:

cvs [login aborted]:reading from server: connection reset by peer.


哪个高手帮帮忙。。。

Re: Ubuntu下CVS服务器的搭建

发表于 : 2010-07-28 14:39
阿步弟弟
cmhost.cn 写了:
hahsuu 写了:em20
求助:按照1楼的方法在9.04服务器版上安装,始终提示“Connection refused”,用netstat -l查看也没有2401监听端口。希望各位给以帮助。
sudo gedit /etc/cvsd/cvsd.conf
change line: Listen * 2401
to this: Listen 0.0.0.0 2401


参考:http://www.oklinux.cn/html/network/ser/ ... 73693.html


帖子虽老,依旧可用。问题解决了~~~~~谢谢~~~

Re: Ubuntu下CVS服务器的搭建

发表于 : 2010-10-06 18:26
SongPu
附上在 Ubuntu 10.04 版本上的成功经验。
参考链接 https://help.ubuntu.com/10.04/servergui ... erver.html
简单翻译如下:

Installation
安装

To install CVS, run the following command from a terminal prompt:
运行下面的命令进行安装(可以先执行

代码: 全选

 cvs --version
检查是否已经安装)。

代码: 全选

sudo apt-get install cvs
After you install cvs, you should install xinetd to start/stop the cvs server. At the prompt, enter the following command to install xinetd:
安装cvs后,需要安装 xinetd 来启动和停止CVS服务。通过下面的命令进行安装(可以通过

代码: 全选

xinetd -version
检查是否已经安装)。

代码: 全选

sudo apt-get install xinetd
Configuration
配置

Once you install cvs, the repository will be automatically initialized. By default, the repository resides under the /var/lib/cvs directory. You can change this path by running following command:

安装CVS后,仓库会被自动初始化。默认是在目录
/ver/lib/cvs
下面(但是在本人机器上是在

代码: 全选

 /srv/cvs
下面,不知道怎么回事)。可以使用下面的命令创建自己的仓库(用自己的仓库路径进行替换,譬如本人机器上的路径是

代码: 全选

cvs -d /home/peter/dev
peter 是登录用户。 dev 是自己创建的目录)。

代码: 全选

cvs -d [b]自己想要的仓库路径[/b] init
Once the initial repository is set up, you can configure xinetd to start the CVS server. You can copy the following lines to the /etc/xinetd.d/cvspserver file.
仓库初始化后,你可以配置 xinetd 来启动 cvs 服务。可以把下面的内容复制到 /etc/xinetd.d/cvspserver 文件中(文件 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
}
Be sure to edit the repository if you have changed the default repository (/var/lib/cvs) directory.
注意:把上面内容中的 /var/lib/cvs 替换成前面创建的仓库的目录(在本人机器上就是

代码: 全选

server_args = -f --allow-root /home/peter/dev pserver


Once you have configured xinetd you can start the cvs server by running following command:
配置 xinetd 后,可以启动cvs服务,通过下面的命令:

代码: 全选

sudo /etc/init.d/xinetd restart
You can confirm that the CVS server is running by issuing the following command:
你可以通过下面的命令检查 cvs 服务是否正在运行:

代码: 全选

sudo netstat -tap | grep cvs
When you run this command, you should see the following line or something similar:
当你运行上面的命令,应该可以看到类似下面的内容。

tcp 0 0 *:cvspserver *:* LISTEN

From here you can continue to add users, add new projects, and manage the CVS server.
从这里,你可以继续添加用户,添加工程和管理 CVS 服务。

Re: Ubuntu下CVS服务器的搭建

发表于 : 2010-10-07 19:45
SongPu
自己顶一个