Step 3: Build the svn server in centos

Source: Internet
Author: User

Build SVN service and effectively manageCodeIn the following three steps.
1. Installation

 
# Yum install subversion determine whether the installation is successful # subversion-V svnserve, version 1.6.11 (r93411) The above prompt appears, indicating that the installation is successful. With the svn software, you also need to create a SVN database. # Mkdir/opt/SVN/repos # svnadmin create/opt/SVN/repos after executing the preceding command, multiple files are automatically created under repos, which are Conf, DB, format, hooks, locks, readme.txt.

2. Configuration
The above operation is very simple, just a few commands, the following operation is not difficult.
Go to the conf folder generated above and configure the following files: authz, passwd, svnserve. conf
Among them, authz is permission control, which users can access which directories, passwd is used to set users and passwords, and svnserve is used to set svn-related operations.
2.1 set passwd first

 
[Users] # Harry = harryssecret # Sally = sallyssecrethello = 123 username = password so that we have set up a hello user and a 123 password.

 2.2 set the permission authz again

 
[/] Hello = RW means that the hello user has read and write permissions on all directories. Of course, it can also be limited. If you use it on your own, read and write it directly.

2.3 Finally set snvserv. conf

 
Anon-access = none # Make unauthorized users unable to access auth-access = write # Enable authorized users to write password-DB = passwordauthz-DB = authz # access control file realm =/ OPT/SVN/repos # authentication namespace, the Subversion is displayed in the authentication prompt and serves as the key word cached by the credential. Use the default configuration. The above statements must be written in the top level, and no space is left. Otherwise, an error will occur.

Now, with the above configuration, you can use SVN.

3. Connection

 
Run SVN: svnserve-d-r/opt/SVN/repos. If SVN is already running, run svnserve-d-r/opt/SVN/repos -- listen-port 3391 on another port. The same server can run multiple svnservers, you can use it. We recommend that you use tortoisesvn with the connection address SVN: // your server address (if the specified port needs to be added to the port: Port Number). After the connection, you can upload local files to effectively manage your code.

Through the above three steps, you can quickly build SVN

Related Article

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.