centos6.6 Installing the SVN server (2015/3/7)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.