How does the SVN server build under Linux (CentOS)? When it comes to SVN servers, everyone knows how to build an SVN server under Linux. So today we share the idea of Linux (CentOS) building SVN server!
While it's easy to build SVN on windows, it's not very efficient, of course, compared to Linux. However, it is cumbersome to build SVN on Linux, so today this article will take you through the steps to build SVN on CentOS.
The installation steps are as follows:
1. Yum Install Subversion
2. Enter RPM-QL subversion to view the installation location.
3. Create SVN repository Directory
Mkdir-p/var/svn/svnrepos
4. Create a version library
Svnadmin Create/var/svn/svnrepos
5. Enter the Conf directory (the SVN repository configuration file)
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:
[/]
Dan=rw
W=r
It means that the repository's root directory Dan has read and write access to it, and W only reads permissions
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
9. Start the SVN repository
Svnserve-d-r/var/svn/svnrepos
10. Testing on Windows
Import svn in Elipse, enter SVN://IP
How to build the SVN server under Linux (CENTOS7)