1.创建cvs组,用户
2.查看service 里是否用cvs的端口
结果
3.编写cvs角本
注意:a、service后面的名称一定要和你在/etc/service文件中的cvs服务名称一样;
注意:每行等号左右都有一个空格,否则无法启动服务。
-f和--allow-root之间也有一个空格,--allow-root=/home/dsscvs/cvsroot之间不能有空格。
4.创建cvs库
5.cvs进行初始化
6.测试连接
|
class=codetop>CODE:
class=codemain>groupadd cvs useradd cvsroot -g cvs passwd cvsroot |
2.查看service 里是否用cvs的端口
| class=codetop>CODE: class=codemain>more /etc/services | grep cvspserver |
结果
|
class=codetop>CODE:
class=codemain>cvspserver 2401/tcp #CVS client/server operations cvspserver 2401/udp #CVS client/server operations |
3.编写cvs角本
|
class=codetop>CODE:
class=codemain>service cvspserver { disable = no socket_type = stream wait = no user = root env = HOME= server = /usr/bin/cvs server_args = -f --allow-root=/home/cvsroot/document pserver } |
注意:a、service后面的名称一定要和你在/etc/service文件中的cvs服务名称一样;
注意:每行等号左右都有一个空格,否则无法启动服务。
-f和--allow-root之间也有一个空格,--allow-root=/home/dsscvs/cvsroot之间不能有空格。
4.创建cvs库
|
class=codetop>CODE:
class=codemain>mkdir -d /cvsroot/document chown -R cvsroot.cvs /cvsroot chmod 771 /cvsroot/document |
5.cvs进行初始化
| class=codetop>CODE: class=codemain>cvs -d /cvsroot/document init |
6.测试连接
| class=codetop>CODE: class=codemain>cvs -d :pserver:cvsroot@localhosthost:/home/cvsroot/document login |

添加到雅虎收藏