Premise:
Linux for Cenos;
Yum was installed;
1. Go to Linux and perform yum direct download installation
Yum Install Svbversion
650) this.width=650; "title=" 22.png "alt=" wkiom1yiakays6s1aak6qnqdqrk057.jpg "src=" http://s3.51cto.com/wyfs02/M00/ 74/97/wkiom1yiakays6s1aak6qnqdqrk057.jpg "/>
2. View SVN installation location
RPM-QL Subversion
650) this.width=650; "title=" 33.png "alt=" wkiol1yiarocvqilaahqcmdwkty722.jpg "src=" http://s3.51cto.com/wyfs02/M00/ 74/94/wkiol1yiarocvqilaahqcmdwkty722.jpg "/>
3. Create the SVN repository directory
Makdir-p/var/svn/svnrepos
4. Create a version library
Svnadmin Create/var/svn/svnrepos
The file will be generated under svnrepos after 3.4 execution:
650) this.width=650; "title=" 44.png "alt=" wkiol1yia-uaqkdsaafwspbwxeu753.jpg "src=" http://s3.51cto.com/wyfs02/M00/ 74/94/wkiol1yia-uaqkdsaafwspbwxeu753.jpg "/>
5. Learn about the SVN repository configuration file conf directory
CD conf #进入该版本库的配置文件conf下
Authz file is a permission control file
passwd is the account password file
Svnserve.conf SVN service configuration file
650) this.width=650; "title=" 55.png "alt=" wkiom1yibg6ab4claacefabqg0m637.jpg "src=" http://s3.51cto.com/wyfs02/M02/ 74/97/wkiom1yibg6ab4claacefabqg0m637.jpg "/>
6. Set the account password
VI passwd
Add users and passwords to the [users] block in the format: Account number = password, such as Bao=bao
7. Set permissions
VI Authz
Add the following code at the end:
[/]
Bao=rw
W=r
This means that the repository's root directory Bao has read and write access to it, and W has Read permission only.
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. Restart the service after configuration is complete
Reboot
10. Start the SVN repository
Svnserve-d-r/var/svn/svnrepos
After the installation of the TORTOISESVN on 11.win is complete, test
① installation completed tortoisesvn;
② new Folder SVN, to test whether the server is installed successfully;
③ Select the SVN folder, right click and select "SVN Checkout"
④ input SVN://IP
650) this.width=650; "title=" 66.png "alt=" wkiom1yibktaztmnaahj6dibg4y906.jpg "src=" http://s3.51cto.com/wyfs02/M00/ 74/97/wkiom1yibktaztmnaahj6dibg4y906.jpg "/>
Enter user name + password: Bao+bao, check success
650) this.width=650; "title=" 77.png "alt=" wkiol1yibvryvxapaabsiyxsvqg488.jpg "src=" http://s3.51cto.com/wyfs02/M01/ 74/94/wkiol1yibvryvxapaabsiyxsvqg488.jpg "/>
This article is from the "I have patience with myself" blog, please be sure to keep this source http://9607474.blog.51cto.com/9597474/1703910
Build SVN server under Linux environment