Build SVN server in CentOS 7
The installation procedure is as follows:
1. yum install subversion
2. Check the installed version svnserve -- version.
3. Create the SVN version library directory mkdir-p/var/svn/svnrepos
4. create a version library svnadmin create/var/svn/svnrepos
After this command is executed, the following files are generated in the/var/svn/svnrepos directory:
5. Go to the conf directory (the svn version library configuration file) cd conf/
The authz file is a permission control file.
Passwd is the account password file
Svnserve. conf SVN service configuration file
6. Set the account password vi passwd
Add the user and password to the [users] block. Format: account = password, for example, quwenzhe = 123456.
7. Set the permission vi authz
Add the following code at the end:
[Html] view plaincopy
- [/]
- Quwenzhe = rw
Quwenzhe, the root directory of the version Library, has read and write permissions on it.
8. Modify the svnserve. conf file vi svnserve. conf.
Open the following comments:
Anon-access = read # anonymous user readable
Auth-access = write # authorized users can write
Password-db = passwd # Which file is used as the account file
Authz-db = authz # Which file is used as the permission File
Realm =/var/svn/svnrepos # Name of the authentication space, directory of the version Library
9. Start the svn version library svnserve-d-r/var/svn/svnrepos (stop the SVN command killall svnserve)
10. Test on windows
Enter the SVN address, for example:
Enter the user name and password, for example:
At this point, all the operations for building the SVN server on CentOS 7 have been completed. I hope my explanation will be helpful to you.