SVN Server build Environment: Linux CentOS 7 Installation:
1. Install SVN server
1 Yum Install subversion
2. View version
1 svnserve--version
3. Create a version library
Create a directory First
1 mkdir/var/svn
To create a version library
1 cd/var/svn // first go to svn directory 23 svnadmin Create/var/ Svn/proname // create Proname library with SVN administrator 45 cd proname // Enter library 67 ls // View the files in the library
The file that appears, the library is created successfully.
Subversion Directory Description
DB directory: is the data storage file for all version control.
Hooks directory: The directory where the hook script files are placed.
Locks directory: Used to place subversion to see hard lock Data directory, used to track access to the file repository client.
Format file: is a text file that contains only an integer that represents the version number of the current vault configuration.
Conf directory: This is the repository configuration file (user access to the warehouse account, permissions, etc.).
Go to the Conf directory (the SVN repository profile) CD conf/
Authz file is a permission control file
passwd is the account password file
Svnserve.conf SVN service configuration file
Set Account password VI passwd
Add users and passwords to the [users] block in the format: Account number = password, such as Suzhan=redhat
Set Permissions VI Authz
Add the following code at the end:
[/]
user=rw Description: (r: Read, W: Write)
Modify 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
Note: In the red box, all to shelf write, that is, the front can not have spaces
Start the SVN repository
1 Svnserve-d-R/var/svn/svnrepos
Stop the SVN command
1 killall Svnserve
Use Ps-ef |grep svn to see if the service is turned on.
Testing on client tests on Windows with TORWOISESVN
Torwoisesvn:tortoisesvn.net/downloads.html
On Windows desktop or any folder, right-click-->svn Check out in the blank
The project is then downloaded via the SVN server IP, and the checkout location can be selected
Checkout complete!
Note: The first login needs to enter the account password, that is, you modify the passwd file inside the account password.
Test for possible problems svn:E000113:Unable to connect to a repository at URL ' Svn://ip/repos ' cannot connect to host ' IP ': Because the connecting party does not reply after a period of time
Reason: CentOS 7 is not open to 3690 ports by default
Solution:
Centos7 setting up the firewall:
1. Open 3690 Ports:
1 firewall-cmd–permanent–zone= public –add-port=3690/tcp
2. Restart the firewall:
1 firewall-cmd–reload
Manually build the SVN server on Linux