Yum Install Subversion
View installation Location
RPM-QL Subversion
The results are as follows:
SVN generates a few binaries in the bin directory
You can see how SVN is used
SVN--help
Create SVN repository Directory
Mkdir-p/var/svn/svnrepos
To create a version library
Svnadmin Create/var/svn/svnrepos
After executing this command, the following files are generated under the/var/svn/svnrepos directory
Enter the Conf directory (the SVN repository configuration file)
Cd/var/svn/svnrepos/conf
Authz file is a permission control file
passwd is the account password file
Svnserve.conf SVN service profile set account password
Vim passwd
Add users and passwords to the [users] block in the format: Account number = password, such as Test=test
Test=test
Set permissions
Vim Authz
Add the following code at the end
[/]test=rwtest1=r
This means that the repository root test has read and write access to it, and test1 only Read permissions.
Modify the Svnserve.conf file
Vim 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, directory where repository is located
Start the SVN repository
Svnserve-d-r/var/svn/svnrepos
Be sure to open SVN ports and test on Windows
Create a new test folder, and under that folder, right-click the SVN Checkout
e.g. (to install TORTOISESVN beforehand)
Fill in the SVN address, such as:
Enter your account password to use it normally.
Common errors:
When you start:
Svnserve-d-r/var/svn/svnrepos
Tips
Bind:address already in use
, SVN has been started, the default port is 3690;
You can kill and then turn it back on.
PS aux | grep SVN
Kill PID (PID is the PS out of the PID so stop service)
2. We can try to re-specify a port 8088 using the –listen-port 8088 parameter.
Svnserve-d-r/var/svn/–listen-port 8088
SVN cannot view history
Error item is not readable, or other operation, will produce
A hint like offline.
Open/var/svn/svnrepos/conf/vnserve.conf with Vim
Set anon-access = None
Then restart SVN
Firewall, SVN server-side installation (YUM)