The steps are as follows:
1:yum install-y Subversion
2:svnserve–version
3:
[Email protected] ~]# MKDIR/U02/SVN
[[email protected] ~]# svnadmin CREATE/U02/SVN/REPOS2–DAVESVN for repository name
4: Configure all of the 3 files to configure!
Once the repository is created, 3 configuration files are generated in this directory:
[Email protected] conf]# pwd
/u02/svn/davesvn/conf
[[email protected] conf]# ls
Authz passwd svnserve.conf
Modified to:
Content modified to:
[General]
Anon-access = None
auth-access = Write
PASSWORD-DB =/opt/svn/conf/pwd.conf//Note the path is consistent with the above
AUTHZ-DB =/opt/svn/conf/authz.conf//Note path
Realm = REPOS2//Repos2 is the repository you created
Configure account Password VI passwd
Shanmao = Shanmaomima
Configuring groups and Permissions VI Authz
[Groups]
# harry_and_sally = harry,sally
# Harry_sally_and_joe = Harry,sally,&joe
admin = Shanmao,xiaosu,ahui,boss,ruizhong
Qianduan = Lingbin,xiaopang
Sheji = xuejiao,weiping
Houduan = Haoming,ruizhong,mofa,chenchen
Mobile = Haoming
[/]
@admin = RW
[Mancoo:/font]
@qianduan = RW
[Mancoo:/desgin]
@sheji = RW
[Mancoo:/code]
@houduan = RW
[Mancoo:/mobile]
@mobile = RW
[Mancoo:/doc]
*=rw
[Mancoo:/business]
*=rw
[Mancoo:/services]
@admin = RW
Start SVN
Svnserve-d-R/U02/SVN
Client Connection Svn:svn://ip/repos2
Successfully build SVN under Linux