cvs安裝流程(CentOS 5.6):
install:
#yum install xinetd
#yum install cvs

查看cvs是否有安裝起來:
# rpm -qa | grep cvs

create a CVS group:
#groupadd cvs
#useradd -g cvs -s /sbin/nologin cvsroot
#chmod 775 /home/cvsroot

Initialize cvs source:
#cvs -d /home/cvsroot init

#cat /etc/services | grep cvspserver

enable CVS service
#vi /etc/xinetd.d/cvs
ervice cvspserver
{
disable = no
port = 2401
socket_type = stream
protocol = tcp
wait = no
user = root
passenv = PATH
server = /usr/bin/cvs
env = HOME=/var/cvs
server_args = -f --allow-root /home/cvsroot pserver
#bind = 127.0.0.1
}

#netstat -l | grep cvs

啟動cvs:
#/etc/init.d/xinetd restart

登入cvs
#cvs -d :pserver:sandra@10.21.11.39/home/cvsroot login
or
#export CVSROOT=:pserver:sandra@10.21.11.39/home/cvsroot
#cvs login

Q1. errors:
As follows:
[root@www ~]#cvs -d :pserver:sandra@10.21.11.39/home/cvsroot login
Logging in to :pserver:sandra@10.21.11.39:2401/home/cvsroot
CVS password:
cvs [login aborted]: unrecognized auth response from localhost: cvs pserver: cannot open /home/cvsroot/CVSROOT/config: Permission denied

Solution: turn off SELinux on s.com.
Turn it off now:
#setenforce 0

Turn it off after next restart:
#vi /etc/selinux/config
#SELINUX=enforcing
modify SELINUX=enforcing to
SELINUX=disabled

Q2. errors:
[root@www ~]# cvs -d :pserver:sandra@10.21.11.39/home/cvsroot login
Logging in to :pserver:sandra@10.21.11.39:2401/home/cvsroot
CVS password:
cvs [login aborted]: connect to [10.21.11.39]:2401 failed: No route to host

Ans: 請將cvs server的iptables關閉
#service iptables stop