CentOS SVN Server Setup1、Yum InstallSubversion2、mkdir-p/opt/SVN3、chmodR777/opt/SVN4, Svnadmin create/opt/svn/Repos #创建一个svn版本仓库repos5, cd/opt/svn/repos/conf6、CP-P svnserve.conf./Svnserve.conf.bak back up the files that are about to be modified7、VIsvnserver.conf8, anon-access =None #匿名用户禁止访问auth-access =WritePassword-db =passwd#密码文件authz-db =Authz #认证文件realm=Repos #仓库9、VIauthz[groups]# harry_and_sally=harry,sally# Harry_sally_and_joe= harry,sally,&joe# [/foo/bar]# Harry=rw#&joe =r#* =# [repository:/baz/fuz]# @harry_and_sally=rw#* =Rrepos=zhoutingze,yuanlei[/] @repos=Rwzhoutingze=Rwyuanlei=RW* =RTen、VI passwd[users]# Harry=harryssecret# Sally=Sallyssecretzhoutingze=123456Yuanlei=12345678 One, svnserve-d-r/opt/svn/Repos #启动svn版本库 A, SVN checkout svn://120.25.238.000 -, multi-Library management, placing multiple libraries into/opt/The SVN directory stops killall svnserve CD first/opt/SVNCP-P Repos/conf/authz./AuthzCP-P repos/conf/passwd./passwdCD Repos/confVIsvnserve.conf Password-db =/opt/svn/passwd#密码文件 Authz-db =/opt/svn/Authz #认证文件VI/opt/Authz [groups] Repos=Zhoutingze,yuanlei [Repos:/] @repos=RW Zhoutingze=RW Yuanlei=RW* =R Svnserve-d-r/opt/svn/#注意这里, there is no repos folder for SVN checkout svn://120.25.238.000/repossvnadmin Create ProjectplanVIprojectplan/conf/svnserve.conf Password-db =/opt/svn/passwd#密码文件 Authz-db =/opt/svn/Authz #认证文件 Realm=Projectplan #仓库VI/opt/Authz [groups] Repos=Zhoutingze,yuanlei Projectplan=Zhoutingze,yuanlei [Repos:/] @repos=RW Zhoutingze=RW Yuanlei=RW* =R [Projectplan:/] @ProjectPlan=RWKillallSvnservesvnserve-d-r/opt/svn/
CentOS SVN Server Setup