CENTOS6にCVSを設定
1.yumでCVSをインストール
2.設定
4.cvsroot初期化
5.permission
6.グループユーザ作成
7.サービス起動
8.接続確認
$yum install xinetd cvs cvs-inetd
2.設定
$vi /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 #yes->no
port = 2401
socket_type = stream
protocol = tcp
wait = no
user = root
passenv = PATH
server = /usr/bin/cvs
env = HOME=/var/cvs
#2つcvsrootを作成
server_args = -f --allow-root=/var/cvs --allow-root=/var/cvs2 pserver
# bind = 127.0.0.1
}
3.iptable
$vi /etc/sysconfig/iptables
#CVS
-A INPUT -m state --state NEW -m tcp -p tcp --dport 2401 -j ACCEPT
4.cvsroot初期化
$cvs -d /var/cvs init
$cvs -d /var/cvs2 init
5.permission
$chown -R root.cvs /var/cvs
$chown -R root.cvs /var/cvs2
$ chmod 775 /var/cvs
$ chmod 775 /var/cvs2
6.グループユーザ作成
$groupadd -g 500 cvs
$vigr
cvsグループにcvsを利用するユーザを登録
7.サービス起動
$/etc/init.d/xinetd restart
$chkconfig xinetd on
8.接続確認
cvs login
$cvs -d ':pserver:laccie@192.168.1.1:/var/cvs' login
cvs logout
$cvs -d ':pserver:laccie@192.168.1.1:/var/cvs' logout
コメント