1.yum Install Subversion
2.mkdir-p/var/svn/svnrepos
3. After executing this command, the following files are generated in the/var/svn/svnrepos directory
4. Enter the Conf directory
Authz file is a permission control file
passwd is the account password file
Svnserve.conf SVN service configuration file
6. Set Account password
VI passwd
Add users and passwords to the [users] block in the format: Account number = password, such as Dan=dan
7. Set permissions
VI Authz
Add the following code at the end:
[/]//Note to add this
Dan=rw
8. Modify the Svnserve.conf file
VI svnserve.conf
Open a few notes below:
Anon-access = Read #匿名用户可读
auth-access = Write #授权用户可写
Password-db = passwd #使用哪个文件作为账号文件
Authz-db = Authz #使用哪个文件作为权限文件
Realm =/var/svn/svnrepos # certified space name, repository directory
Note: You must also remove the space when you remove the comment
9. Start the SVN repository
Svnserve-d-r/var/svn/
Note: Write to the upper layer on the OK,?? For the wrong demonstration
Svnserve-d-r/var/svn/svnrepos
Linux Builds SVN environment