- 论坛徽章:
- 0
|
我的现在情况.
服务器:红帽子企业4(上已经安装了oracle)
cvs为:cvsnt-2.5.03.2151-rh9-rpm.tar.gz ,在http://www.march-hare.com/cvspro/,下载的是最新的版本
我的安装过程:
确认是否安装了老版本的cvs,如果有老版本的,就统统删除
[root@redhat /]# rpm -qa |grep cvs
libbonoboui-2.8.0.99cvs20040929-2
cvs-1.11.17-7.RHEL4
[root@redhat /]# rpm -e cvs-1.11.17-7.RHEL4
[root@redhat /]# rpm -qa | grep cvs
libbonoboui-2.8.0.99cvs20040929-2
将下载的cvs文件解压
[root@redhat cvs]# tar zxvf cvsnt-2.5.03.2151-rh9-rpm.tar.gz
cvsnt-2.5.03.2151-1.i386.rpm
cvsnt-database-mysql-2.5.03.2151-1.i386.rpm
cvsnt-database-odbc-2.5.03.2151-1.i386.rpm
cvsnt-database-sqlite-2.5.03.2151-1.i386.rpm
cvsnt-protocol-gserver-2.5.03.2151-1.i386.rpm
cvsnt-protocol-sserver-2.5.03.2151-1.i386.rpm
[root@redhat cvs]# ls
cvsnt-2.5.03.2151-1.i386.rpm cvsnt-database-sqlite-2.5.03.2151-1.i386.rpm
cvsnt-2.5.03.2151-rh9-rpm.tar.gz cvsnt-protocol-gserver-2.5.03.2151-1.i386.rpm
cvsnt-database-mysql-2.5.03.2151-1.i386.rpm cvsnt-protocol-sserver-2.5.03.2151-1.i386.rpm
cvsnt-database-odbc-2.5.03.2151-1.i386.rpm
安装相关的rpm包(之后立刻确认安装)
[root@redhat cvs]# rpm -ivh cvsnt-2.5.03.2151-1.i386.rpm
Preparing... ########################################### [100%]
1:cvsnt ########################################### [100%]
[root@redhat cvs]# rpm -qa |grep cvs
libbonoboui-2.8.0.99cvs20040929-2
cvsnt-2.5.03.2151-1
[root@redhat src]# cvs -version
Concurrent Versions System (CVSNT) 2.5.03 (Scorpio) Build 2151 (client/server)
Copyright (c) 1989-2001 Brian Berliner, david d `zoo' zuhn,
Jeff Polk, and other authors
CVSNT version (Nov 14 2005) Copyright (c) 1999-2005 Tony Hoyle and others
see http://www.cvsnt.org
Commercial support and training provided by March Hare Software Ltd.
see http://www.march-hare.com/cvspro
CVSNT may be copied only under the terms of the GNU General Public License v2,
a copy of which can be found with the CVS distribution.
The CVSNT Application API is licensed under the terms of the
GNU Library (or Lesser) General Public License.
Perl Compatible Regular Expression Library (PCRE)
Copyright (c) 1997-2004 University of Cambridge.
Licensed under the BSD license.
See http://www.pcre.org/license.txt
Specify the --help option for further information about CVS
建立cvs用户组
[root@redhat /]# groupadd cvs
以上建立组的语句,不会在/home中多出任何目录来,赫赫.
建立经后的存放目录
[root@redhat /]# mkdir cvs
[root@redhat /]# cd cvs
[root@redhat cvs]# mkdir src
[root@redhat cvs]# cd src
[root@redhat src]# pwd
/cvs/src
[root@redhat src]#
指定cvs组的cvsroot用户和所属的目录
[root@redhat src]# useradd -g cvs -G cvs -d/cvs cvsroot
为cvsroot用户添加密码
[root@redhat cvs]# passwd cvsroot
Changing password for user cvsroot.
New UNIX password:
BAD PASSWORD: it does not contain enough DIFFERENT characters
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
改变/cvs的目录属性
[root@redhat /]# chmod 775 /cvs
drwxrwxr-x 4 root root 4096 Dec 7 14:14 cvs
[root@redhat cvs]# chmod 775 src
drwxrwxr-x 2 root root 4096 Dec 7 14:06 src
对cvs进行相关的版本确认
[root@redhat /]# cvs version
Concurrent Versions System (CVSNT) 2.5.03 (Scorpio) Build 2151 (client/server)
启动cvs服务器
[root@redhat /]# more /etc/services|grep cvspserver
cvspserver 2401/tcp # CVS client/server operations
cvspserver 2401/udp # CVS client/server operations
如果上面没有这个内容就
[root@redhat /]# vi /etc/services
来添加相关的内容
[root@redhat /]# vi /etc/xinetd.d/cvspserver
service cvspserver
{
disable = no
flags = REUSE
port = 2401
socket_type = stream
protocol = tcp
wait = no
user = root
passenv = PATH
server = /usr/bin/cvs
server_args = -f --allow-root=/cvs pserver
log_on_failure += USERID
}
shift+wq!
"/etc/xinetd.d/cvspserver" [New] 14L, 225C written
[root@redhat src]# ls /etc/xinetd.d/cvspserver
/etc/xinetd.d/cvspserver
[root@redhat src]# su cvsroot
[cvsroot@redhat src]$ pwd
/cvs/src
[root@redhat /]# service xinetd restart
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]
[root@redhat /]# netstat -l |grep cvspserver
tcp 0 0 *:cvspserver *:* LISTEN
初始化cvs源码库,新建立一个Repository,此操作生成目录/cvs/CVSROOT(或者/cvs/src/CVSROOT),其下为一些初始化文件
[root@redhat src]# export CVSROOT=/cvs/src
[root@redhat src]# env | grep CVSROOT
CVSROOT=/cvs/src
[root@redhat src]# cvs -d /cvs/src init
在我输入 cvs -d /cvs/src init之后,流程就死在这里了,等1,2天都还是这样.
[root@redhat src]# ps aux|grep cvs
root 3308 0.0 0.4 6228 1172 pts/2 S 17:47 0:00 su cvsroot
cvsroot 3309 0.0 0.5 5548 1388 pts/2 S 17:47 0:00 bash
cvsroot 3423 0.0 0.6 6300 1792 pts/2 S+ 18:57 0:00 cvs -d /cvs/src init
root 3424 0.1 0.6 6300 1668 ? Ss 18:57 0:00 cvs -f --allow-root=/cvs/src pserver
root 3426 0.0 0.1 2980 368 pts/1 R+ 18:57 0:00 grep cvs
非常苦恼不知道从何找起错误,我都摸不到错误的方向.
疑问1:我的linux操作系统软件版本,和我下载的版本是否配套.
疑问2:那个cvs .... init 好像默认使用的是2402端口,而默认的rpm包安装是开放的2401端口,这个我都弄了好久.
请各位高手谈谈看法,可能错在那里.
谢谢了 |
|