Instruction for Move CVS to different box or backup CVS - CentOS
1, install CVS
yum install cvs
2, create cvs group and user
useradd -G cvs cvs
3, set CVSROOT environment variable
CVSROOT=/cvs/CVSROOT/
export CVSROOT
4, generate CVSROOT
cvs -d /cvs/CVSROOT init
5 setup the CVS server. It will be launched by Xinetd
[root@NTRCVS ~]# vim /etc/xinetd.d/cvs
# default: off
# description: The CVS service can record the history of your source \
# files. CVS stores all the versions of a file in a single \
# file in a clever way that only stores the differences \
# between versions.
service cvspserver
{
disable = no
port = 2401
socket_type = stream
protocol = tcp
wait = no
user = root
passenv = PATH
server = /usr/bin/cvs
env = HOME=/cvs
server_args = -f --allow-root=/cvs pserver
# bind = 127.0.0.1
}
6,run cvs server
/etc/init.d/xinetd restart
No comments:
Post a Comment