1. Install Subversion
Yum Install Subversion-y
2, set up the project directory, and initialize
Svnadmin Create/home/svn/project
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/56/C7/wKiom1SNi3jxHKhSAAFqoq0JkPo971.jpg "title=" 1.png " alt= "Wkiom1sni3jxhkhsaafqoq0jkpo971.jpg"/>
3. Modify configuration file, create new user and set permissions
Cd/home/svn/project/conf
Authz Permissions Control File
passwd account password File
Svnserve.conf SVN service configuration file
Add user Tom and password
Vim passwd
[Users]
# Harry = Harryssecret
# sally = Sallyssecret
Tom = Tom
To set permissions, add the following code at the end:
Vim Authz
[/]
Tom=rw
Give Tom Read and write permissions to the root directory
Modify the service configuration file to open some comments:
Vim svnserve.conf
Anon-access = Read #匿名用户可读
auth-access = Write #授权用户可写
Password-db = passwd #使用哪个文件作为账号文件
Authz-db = Authz #使用哪个文件作为权限文件
Realm = My SVN repo # Certified space name, directory where repository is located
Note that there are no spaces before each line
4. Start the SVN repository
Svnserve-d-r/home/svn/project
Local testing
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/56/C7/wKiom1SNjpXx_V1vAANMTz0MBeI282.jpg "style=" float: none; "title=" 3.png "alt=" Wkiom1snjpxx_v1vaanmtz0mbei282.jpg "/>
Note: First, you will be asked to enter the root password, and then enter the new user and password, and finally select Yes to automatically download a copy to the current directory.
5. Testing in Windows
Enter the path, click OK, enter the user name and password
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/56/C5/wKioL1SNj-yT4tgpAAFnzdT4hco819.jpg "title=" 4.png " alt= "Wkiol1snj-yt4tgpaafnzdt4hco819.jpg"/>
Similarly, the project directory is automatically generated, which has an. SVN directory that contains information about the current repo and the configuration file.
The general version of SVN can be updated in the project directory.
This article is from the "World" blog, make sure to keep this source http://xiajie.blog.51cto.com/6044823/1589860
CentOS 6.5 SVN Server Setup documentation