SVN是Subversion的简称,是一个开放源代码的版本控制系统。

搭建:

yum install subversion



配置:

mkdir /var/svn

svnadmin create /var/svn/os


[root@localhost conf]# cat svnserve.conf 

anon-access = none

auth-access = write

password-db = passwd

authz-db = authz

realm = os

[root@localhost conf]# cat authz 

[groups]

admin = zhou1

devetem1 = zhou2

[os:/]

* =

@admin = rw

@devetem1 = r

[root@localhost conf]# cat passwd 

zhou1 = zhou123!

zhou2 = zhou123



svnserve -d -r /var/svn/

echo "svnserve -d -r /var/svn/" >>/etc/rc.local 




简单的使用:

svn co svn://192.168.100.101/os os --username zhou1 --password zhou123!


svn add os/2.txt


将改过的文件提交

[root@localhost ~]# svn ci -m "LogMessage" os/2.txt 




svn delete svn://192.168.100.101/os/2.txt -m "delete 2.txt"