简体   繁体   English

CVS错误:连接被拒绝错误

[英]CVS error: connection refused error

Hi i have installed CVS binary(means created link to binary file) in the path / home/mrsx/bin folder and created the respositry in the path /apps/src/CVSROOT (CVSROOT respository name). 嗨,我已经在路径/ home / mrsx / bin文件夹中安装了CVS二进制文件(意味着创建了指向二进制文件的链接),并在路径/ apps / src / CVSROOT中创建了存储库(CVSROOT存储库名称)。 and added entries in inetd.conf as(all in single line): 并将inetd.conf中的条目添加为(全部在单行中):

cvspserver stream tcp nowait root /home/mrsx/bin/cvs cvs -f --allow-root=/apps/src/CVSROOT pserver cvspserver流tcp nowait根目录/ home / mrsx / bin / cvs cvs -f --allow-root = / apps / src / CVSROOT pserver

and in /etc/services as : cvspserver 2401/tcp and restarted inetd . 并在/ etc / services中为: cvspserver 2401 / tcp重新启动inetd

and set CVSROOT to :pserver:username@servername:2401/apps/src/CVSROOT and tried to login and i got connection refused error.. 并将CVSROOT设置为:pserver:username @ servername:2401 / apps / src / CVSROOT并尝试登录,但出现连接被拒绝的错误。

can anybody please tell me what is wrong in the above mentioned steps. 有人可以告诉我上述步骤有什么问题吗?

I just had this problem migrating an Ubuntu cvs repository. 我只是在迁移Ubuntu cvs存储库时遇到问题。 In the Debian-Ubuntu world, do this: 在Debian-Ubuntu世界中,执行以下操作:

apt-get install cvs xinetd

establish your repository ( just follow instructions in the manual) 建立您的存储库(只需按照手册中的说明进行操作)

make sure your users have write permission. 确保您的用户具有写权限。 Typically create a cvs group, put them in it, and mark the repos 775; 通常创建一个cvs组,将其放入其中,并标记存储库775; chgrp -R cvs * ( cvs lacks security, read the manual) chgrp -R cvs *(cvs缺乏安全性,请阅读手册)

add a file in /etc/xinetd.d called cvspserver 在/etc/xinetd.d中添加一个名为cvspserver的文件

edit the file similar to this: 编辑类似于以下文件:

service cvspserver

{

port = 2401

socket_type = stream

protocol = tcp

user = root

wait = no

type = UNLISTED

server = /usr/bin/cvs

server_args = -f --allow-root /usr/local/cvs pserver

disable = no

}

reboot or restart xinetd 重新启动或重新启动xinetd

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM