The installation steps are as follows:
1. Yum Install Subversion
2. Enter RPM-QL subversion to view the installation location, such as:
650) this.width=650; "alt=" Linux (CentOS) build SVN server-small wood-green tomato Paradise "style=" margin:0 10px 0 0; "src=" http://img2.ph.126.net/joqDO_tGPbWonyHE1KAXPg==/2615465483612595002.jpg "/>
We know that SVN generated a few binaries in the bin directory.
Enter SVN--help to see how SVN is used, such as.
650) this.width=650; "alt=" Linux (CentOS) build SVN server-small wood-green tomato Paradise "src=" http://img0.ph.126.net/tZiPb0Kdv7rx9ePKCYPZaA==/ 3093128519090573990.jpg "style=" Line-height:22px;margin-top:0px;margin-right:10px;margin-bottom:0px;margin-left : 0px; "/>
3. Create SVN repository Directory
Mkdir-p/var/svn/svnrepos
4. Create a version library
Svnadmin Create/var/svn/svnrepos
After executing this command, the following files are generated under the/var/svn/svnrepos directory
650) this.width=650; "alt=" Linux (CentOS) build SVN server-small wood-green tomato Paradise "src=" http://img1.ph.126.net/ynSdZGXetWwRWw6f6z1l2Q==/ 2627287432634436641.jpg "style=" Line-height:22px;margin-top:0px;margin-right:10px;margin-bottom:0px;margin-left : 0px; "/>
5. Enter the Conf directory (the SVN repository configuration file)
Authz file is a permission control file
passwd is the account password file
Svnserve.conf SVN service configuration file
6. Set Account password
VI passwd
Add users and passwords to the [users] block in the format: Account number = password, such as Dan=dan
7. Set permissions
VI Authz
Add the following code at the end:
[/]
Dan=rw
W=r
It means that the repository's root directory Dan has read and write permissions, and W only reads permissions.
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. Start the SVN repository
Svnserve-d-r/var/svn/svnrepos
10. Testing on Windows
Create a new test folder, and under that folder, right-click the SVN Checkout (to install TORTOISESVN beforehand):
650) this.width=650; "alt=" Linux (CentOS) build SVN server-small wood-green tomato Paradise "style=" margin:0 10px 0 0; "src=" http://img8.ph.126.net/zMWHmpFZXEdeARVK4lwMKQ==/2830793840796242418.jpg "/>
Fill in the SVN address, such as:
650) this.width=650; "alt=" Linux (CentOS) build SVN server-small wood-green tomato Paradise "style=" margin:0 10px 0 0; "src=" http://img8.ph.126.net/RvYpn69NKHXZfBOc8aTVeg==/2830793840796242428.jpg "/>
Enter a password, such as:
650) this.width=650; "alt=" Linux (CentOS) build SVN server-small wood-green tomato Paradise "style=" margin:0 10px 0 0; "src=" http://img2.ph.126.net/xhJFL2db_4t3JL8eio8aZQ==/2577747836733366402.jpg "/>
Linux (CentOS) builds SVN server