软件测试是为了发现错误而执行程序的过程。 QQ: 12585990 MSN:sunxy5291@hotmail.com

cvs服务器端配置(笔记整理)2007.6.20

上一篇 / 下一篇  2007-06-20 16:36:35 / 个人分类:我的BIOG

51Testing软件测试网;R9i ]4u W8k;p3h&g`5Y

先查看Linux服务器操作系统上是否安装了CVS51Testing软件测试网*T$s]'wtJ"e7q
[root@localhost /]# rpm -qa|grep cvs51Testing软件测试网z5xbp$I:]{
如果没有安装你可以在Redhat 第2张光盘上找到,另外你也可以在网上下载到最新的rpm包。很容易找,其实不存在什么linux版本
U/~;I@\f `v0 51Testing软件测试网+s$\ZP:p+Pk#A?6LJ(Y
建立cvs用户组
z/pl)Y4A0[root@localhost home]# groupadd cvs51Testing软件测试网&| {@:aj&{kl[Q

A:Z7W2B5r.S0建立cvs组的cvsroot用户和所属的目录51Testing软件测试网A| Pf'Kf#h0I
[root@localhost home]# useradd -g cvs -G cvs –d /cvsroot cvsroot

St"f?%zX0sW/[0

^9B/s [.x0为cvsroot用户添加密码
)xFUcr#[Tr(@0[root@localhost home]# passwd cvsroot

s\Iq$OUu)} vd/nI051Testing软件测试网y{7^@5fd wc O7c

改变 /cvsroot/ 的目录属性:
+F5DnJQ-T,B2i k0[root@localhost home]# chmod –R 770 /cvsroot51Testing软件测试网?^6U,nL

51Testing软件测试网l*pS1XemF-g

改变用户登陆身份
d2K$f0@q0[root@localhost home]# su cvsroot51Testing软件测试网Df!k^;Z.d U

51Testing软件测试网 K)z#S8s%k4r4p-m

以下开始正式建立项目
7Q'_%v-~r(X2h0[root@localhost /]# cd /home/cvsroot/egov/
fJ-uS(A9U0[root@localhost egov]# su cvsroot51Testing软件测试网9N%p9j!K K&S`OH P
[cvsroot@localhost ~]$ mkdir projectsxy
a3Y;E*PxGC0[cvsroot@localhost ~]$ ls -l

u PAj{/h,^,E8}0

'r"Am;\zo c0...51Testing软件测试网x\rU+KR\*k_
drwxrwx---  4 cvsroot cvs 4096  6月 19 14:00 OAchanp51Testing软件测试网wz{#?5y-\C;LUF
drwxr-xr-x  2 cvsroot cvs 4096  6月 20 15:23 projectsxy
Q3L || U0drwxrwx---  4 cvsroot cvs 4096  6月 19 14:12 qiyjcxx51Testing软件测试网0tD;~c;Y
...
-d"R8D YrJ.o-Z0[cvsroot@localhost ~]$ cvs -d /home/cvsroot/egov/projectsxy/ init51Testing软件测试网Z kR$g} uk&v0I*Ar
[cvsroot@localhost ~]$ chmod -R 770 projectsxy/51Testing软件测试网/~N^ `Rzl|-Vi
[cvsroot@localhost ~]$ ls -l51Testing软件测试网,wKh+^ h2Z-s!d

6D!K%WE9]r0...51Testing软件测试网6CB:_7y9o*B"l
drwxrwx---  4 cvsroot cvs 4096  6月 19 14:00 OAchanp
[gM OtB0drwxrwx---  3 cvsroot cvs 4096  6月 20 15:24 projectsxy51Testing软件测试网:rF4moXDt,t.T B
drwxrwx---  4 cvsroot cvs 4096  6月 19 14:12 qiyjcxx
~N(`&DDOy0...51Testing软件测试网n b9L?K4s`
[cvsroot@localhost ~]$ cd projectsxy/51Testing软件测试网R}%|:T+V\
[cvsroot@localhost projectsxy]$ ls -l51Testing软件测试网8xn\}U

*cSNqy6wxo_ _~0drwxrwx---  3 cvsroot cvs 4096  6月 20 15:24 CVSROOT51Testing软件测试网 ]&m7i m,s}6C?
[cvsroot@localhost projectsxy]$ exit
7e s @8i(?0[root@localhost egov]# vi /etc/xinetd.d/cvspserver51Testing软件测试网0cKb:I?cQ,R
按i进入到编辑
:{R.}Qs;j0service cvspserver51Testing软件测试网ZN9iRulDp7k}
{51Testing软件测试网sbJ1g&X+] B
disable = no51Testing软件测试网8](H3bE {]"k
flags = REUSE
%CvN%Cb(r0socket_type = stream51Testing软件测试网]d%v3yC+IO&L
wait = no51Testing软件测试网7mz.Ig;hT(Y%s
user = root
}0aj \mBGB0server = /usr/bin/cvs51Testing软件测试网q?#t$oU|
server_args = -f --allow-root=/home/cvsroot/egov/test --allow-root=/home/cvsroot/egov/projectsxy pserver
x"epJ } sN7A0log_on_failure += USERID
8Q;B$Vv-OM/uj3_0}51Testing软件测试网4Qz}2f:{%~/u

51Testing软件测试网/v#q:@h ^n0h+jsb2T

51Testing软件测试网]};Ut-csm0t
~
7x/iy}%k|~r0~
G$Wh xn8\ r0~
h K4dVg3k9Qo[7r0~51Testing软件测试网:]3Al9{^ m(uy"N
-- 插入 -- 51Testing软件测试网6jO:t+{*WF%H[#N b2m8?
编辑完后Shift+:
-z Q,q-K\y P(F0:wq 保存退出   

%BJ3H+oF*V051Testing软件测试网QOy8z'o-d8CQ

[root@localhost egov]# cd projectsxy/
'Vd+V0eJ nq0[root@localhost projectsxy]# ls -l51Testing软件测试网7B e Bj3p
总用量 851Testing软件测试网Wi3oR(_ @ Q3Ot
drwxrwx---  3 cvsroot cvs 4096  6月 20 15:24 CVSROOT
(` {l;dt'P7Yh2j0[root@localhost projectsxy]# cd CVSROOT/
3_/t)J2kDT)|]-m8B0[root@localhost CVSROOT]# ls -l51Testing软件测试网"b|?uoR3T
总用量 192
M7{V R2\ThzO+n`x0-rwxrwx---  1 cvsroot cvs  495  6月 20 15:24 checkoutlist
j1S$Sy!{0-rwxrwx---  1 cvsroot cvs  698  6月 20 15:24 checkoutlist,v
T2q"tA{0-rwxrwx---  1 cvsroot cvs  760  6月 20 15:24 commitinfo51Testing软件测试网7wN)p8OW B E(P0DO4?
-rwxrwx---  1 cvsroot cvs  963  6月 20 15:24 commitinfo,v
it"Q7Q+Qt.f9fs0-rwxrwx---  1 cvsroot cvs  991  6月 20 15:24 config51Testing软件测试网C1xvc gM@#h
-rwxrwx---  1 cvsroot cvs 1194  6月 20 15:24 config,v51Testing软件测试网v'mn\0Kmx
-rwxrwx---  1 cvsroot cvs  602  6月 20 15:24 cvswrappers51Testing软件测试网U7{pwK2A[
-rwxrwx---  1 cvsroot cvs  805  6月 20 15:24 cvswrappers,v
j6o[0|6| m9^0-rwxrwx---  1 cvsroot cvs 1025  6月 20 15:24 editinfo
6n:Kn__-q&h0-rwxrwx---  1 cvsroot cvs 1228  6月 20 15:24 editinfo,v51Testing软件测试网{ L/Ki*nm
drwxrwx---  2 cvsroot cvs 4096  6月 20 15:24 Emptydir
k d6](??^.p'n/\0-rwxrwx---  1 cvsroot cvs    0  6月 20 15:24 history
tA.v,jn @0-rwxrwx---  1 cvsroot cvs 1168  6月 20 15:24 loginfo51Testing软件测试网#[PN7w!|Hn!d
-rwxrwx---  1 cvsroot cvs 1371  6月 20 15:24 loginfo,v51Testing软件测试网TQ]}8Fu
-rwxrwx---  1 cvsroot cvs 1151  6月 20 15:24 modules
,bOI+b;DZ0-rwxrwx---  1 cvsroot cvs 1354  6月 20 15:24 modules,v
{-W@:x p0-rwxrwx---  1 cvsroot cvs  564  6月 20 15:24 notify
~\'jZQ-G0u4n0-rwxrwx---  1 cvsroot cvs  767  6月 20 15:24 notify,v
n:c;O,t&F ^0-rwxrwx---  1 cvsroot cvs  649  6月 20 15:24 rcsinfo51Testing软件测试网X a&z5L ~
-rwxrwx---  1 cvsroot cvs  852  6月 20 15:24 rcsinfo,v
m:|Q r-oJ4H[!}/OF(R0-rwxrwx---  1 cvsroot cvs  879  6月 20 15:24 taginfo51Testing软件测试网} D#Sb0y5`l
-rwxrwx---  1 cvsroot cvs 1082  6月 20 15:24 taginfo,v
7~/f3aW7GOk~zR0-rwxrwx---  1 cvsroot cvs    0  6月 20 15:24 val-tags51Testing软件测试网#F$w,QVD I
-rwxrwx---  1 cvsroot cvs 1026  6月 20 15:24 verifymsg51Testing软件测试网 E:Ay G!s(v~
-rwxrwx---  1 cvsroot cvs 1229  6月 20 15:24 verifymsg,v
`;W*d)VR0[root@localhost CVSROOT]# su cvsroot51Testing软件测试网!y'S}h/u
[cvsroot@localhost CVSROOT]$51Testing软件测试网}w)H*x*Q

R V @4o9v5z0
@Gv#z}0[cvsroot@localhost CVSROOT]$ vi passwd
)~u`3CRLn0按i进入到编辑
2M QI)he$c+a3P0sunxiaoyong:ENSlmPaH.nb2Q:cvsroot51Testing软件测试网cP?0ka\3X E
~
SbO"X7xr/xX3T Y [0~51Testing软件测试网f%g_| I0V3tt'?2a
~51Testing软件测试网&CbNn.B7X
~51Testing软件测试网BZ`?-i"~X&|
-- 插入 --                                                                                                        0,1          全部51Testing软件测试网__0]Xs!v#}

b.Vj"{ J*S1M d| z c0上边密码得来是在另外打开一个窗口进行密码生成:
WJk7k$cX"y2L1k0[root@localhost ~]# cd /51Testing软件测试网3z,h3i-j#|gW4{
[root@localhost /]# /home/cvsroot/passwd.pl "sunxiaoyongprojectsxy"51Testing软件测试网&S4S kz}%F Q&_
ENSlmPaH.nb2Q [root@localhost /]#    51Testing软件测试网~6fY"V dYKt.]

51Testing软件测试网U`Z'O2d

......51Testing软件测试网0W S}&H'x4j"p
最后从客户机建立名称为projectsxy的项目并使用cvs客户端导入。

WI0a"G$rq0

TAG: 我的BIOG

 

评分:0

我来说两句

我的栏目

日历

« 2024-05-13  
   1234
567891011
12131415161718
19202122232425
262728293031 

数据统计

  • 访问量: 42850
  • 日志数: 49
  • 图片数: 2
  • 建立时间: 2006-12-26
  • 更新时间: 2014-05-06

RSS订阅

Open Toolbar