1. SVN installation (yum mode)
Yum-y Install Subversion
Svnserve--version View SVN serve version
Svnserve The default listener port is 3690
2. Create a warehouse
Mkdir-p/data/svn/testproject Warehouse Path
Svnadmin Create/data/svn/testproject Creating a warehouse
3. Configure permissions
Cd/data/svn/testproject/conf
Vim svnserve.conf
Focus on the following parameters:
anon-access = no-Anonymous access
auth-access = Write--Enables authorized users to write permissions
PASSWORD-DB = passwd--User name/password management database file, general use default value
AUTHZ-DB = Authz--access to the control file, that is, the user rights settings, such as the user can set access rights according to the path
Realm =/data/svn/testproject--authentication namespaces, general use of engineering paths
Vim passwd
The user saves the user, the password, and the "password-db" parameter in the svnserve.conf file corresponds to the following format
Vim Authz
The user saves the user, the password, and the "authz-db" parameter in the svnserve.conf file corresponds to the following format
3. Configure permissions
Turn on the firewall (slightly)
Start: svnserve-d-r/data/svn/
CentOS Install SVN