The installation steps are as follows:
1.Yum Install Subversion
2. View the installation version Svnserve--version
3. Create SVN repository directory mkdir-p/var/svn/svnrepos
4. Create a repository svnadmin create/var/svn/svnrepos
After executing this command, the following files are generated under the/var/svn/svnrepos directory
5. Enter the Conf directory (the SVN repository configuration file)CD conf/
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 quwenzhe=123456
7. Set permissions VI authz
Add the following code at the end:
[/]QUWENZHE=RW
It means that the repository's root directory Quwenzhe has read and write access to it.
8, modify 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
9. Start SVN repository svnserve-d-r/var/svn/svnrepos(Stop svn command killall svnserve)
10. Testing on Windows
Enter the SVN address, such as:
Enter a user name, password, such as:
Here, the operation of the SVN server on CentOS has been completed and I hope that my explanation will help you.
CentOS Build SVN server