First, installation
#yum Install Subversion
Determine if the installation was successful
[Email protected]]# svnserve--version
With SVN software, you also need to build an SVN repository.
#mkdir/opt/svn/repos
#svnadmin Create/opt/svn/repos
Second, the configuration
Enter the above generated folder conf, configure, there are several files Authz, passwd, svnserve.conf where Authz is permission control, you can set which users can access which directories, passwd is set user and password, SVN Serve is to set up SVN-related operations.
Changes to the user profile are effective immediately, without restarting SVN.
solve the problem of always proving wrong: svnserve.conf authz-db = Authz to the test, I resolved.
2.1 Set passwd First
[Users] # Harry = Harryssecret # sally = sallyssecret hello=123 username = password
so we set up a hello user, 123 password
2.2 Set permissions again Authz
[/] Hello= rw This means that the Hello user has read and write access to all directories, but can also be qualified. If you use it yourself, read it directly.
2.3 final setting snvserv.conf
Anon-Access=None # makes non-authorized users inaccessible Auth-Access= write # gives authorized users write access Password-db = Password Authz-db = authz # access Control File Realm = /opt/svn/repos # the authentication namespace, subversion is displayed in the authentication prompt and is used as the keyword for the credential cache.
3. Connection
Start SVN
Svnserve-D-R/opt/SVN/Repos--Listen-Port3690
So the same server can run multiple svnserver
Well, after the successful start, you can use it.
TortoiseSVN is recommended, Connection Address: svn: // your server address
Once connected, you can upload local files and manage your code effectively.
After executing the above command, we automatically set up several files under repos, namely Conf, Db,format,hooks, locks, README.txt.
centos6.6 Installing the SVN server (2015/3/7)