How to build SVN server under centos
The knowledge of this article "how to build a SVN server under centos" is not quite understood by most people, so the editor summarizes the following content, detailed content, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "how to build a SVN server under centos" article.
The installation steps are as follows:
1 、 yum install subversion
2. Enter rpm-ql subversion to view the installation location, as shown below:
We know that svn generates several binaries in the bin directory.
Enter svn-- help to see how to use svn, as shown in the figure below.
3. Create the svn version library directory
The copy code is as follows:
Mkdir-p / var/svn/svnrepos
4. Create a version library
The copy code is as follows:
Svnadmin create / var/svn/svnrepos
After executing this command, the following files are generated in the / var/svn/svnrepos directory
5. Enter the conf directory (the svn version library configuration file)
The authz file is a permission control file
Passwd is the account password file
Svnserve.conf svn service profile
6. Set the account password
Vi passwd
Add the user and password to the [users] block, in the format: account = password, such as dan=dan
7. Set permissions
Vi authz
Add the following code at the end:
The copy code is as follows:
[/]
Dan=rw
Whiter
It means that the root directory of the version library, dan, has read and write access to it, and w only has read access.
8. Modify the svnserve.conf file
Vi svnserve.conf
Open the following comments:
Anon-access = read # Anonymous user readable
Auth-access = write # authorised user writable
Password-db = passwd # which file is used as the account file
Authz-db = authz # which file to use as the permissions file
Realm = / var/svn/svnrepos # authentication space name, directory where the version library is located
9. Start the svn version library
Svnserve-d-r / var/svn/svnrepos
10. Test on windows
Create a new test folder, and right-click svn checkout under this folder as shown below (to install tortoisesvn in advance):
Fill in the address of svn, as shown below:
Enter the password, as shown below:
The above is about the content of this article on "how to build a SVN server under centos". I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please follow the industry information channel.