Linux CentOS 6.5 x64 SVN server Setup Steps
1. Install Subversion
Yum Install Subversion
Note: The installation requires root privileges, otherwise you will be prompted need to be root to perform the This command. English is also very simple, here is not much nonsense.
2. See where Subversion is installed
RPM-QL Subversion
We see an executable command in the bin directory:
You can verify that the installation was successful by looking at the SVN version, and enter the following command:
SVN--version
3. Determine the SVN version inventory placement, I choose to use/var/svn/repository
Mkdir-p/var/svn/repository
4. Create a repository at the specified location (/var/svn/repository)
Svnadmin create/var/svn/repository
After the repository is successfully created, the following files are generated in the repository directory:
5. Enter the Conf directory (the SVN repository configuration file)
Authz--File is a permission control file
passwd--Account password file
svnserve.conf--SVN service configuration file
6. Configuration
Set the account password to open the passwd file
Vim passwd
Add a line under the [users] block username = password, where the format is: User name = password, for example: admin = password
Set permissions to open the Authz file
Vim Authz
Added at the end:
[/]
admin = RW
Description
[/]--Version Coogan directory
admin = rw--Admin user has read and write permission
User group set up for the same reason, let's do our own research, here is not much to say.
Setting up the configuration file svnserve.conf
Vim svnserve.conf
Open a few lines in the red box comment: anon-access = read #匿名用户可读auth-access = write #授权用户可写password-db = passwd #使用哪个文件作为账号文件authz-db = Authz #使用哪 Files as permission files Realm =/var/svn/repository # certified space name, the directory where we originally set up the repository
7. Start the SVN repository
Svnserve-d-r/var/svn/repository/
8. Use
Address: svn://127.0.0.1
Default port: 3690
If there is no place to welcome everyone to spend, exchange study.
Linux CentOS 6.5 x64 SVN server Setup