Install SVN under CentOS

Source: Internet
Author: User

1. Installation
#yum Install Subversion
Determine if the installation was successful
#subversion-V
Svnserve, Version 1.6.11 (r934486)
The above prompts indicate that the installation was successful.

With SVN software, you also need to build an SVN repository.
#mkdir/opt/svn/repos
#svnadmin Create/opt/svn/repos
After executing the above command, we automatically set up several files under repos, namely Conf, Db,format,hooks, locks, README.txt.

2. Configuration
The above operation is very simple, a few commands will be done, the following operation is not difficult.
Go to the above generated folder conf, configure it, there are several files Authz, passwd, svnserve.conf
Where Authz is the permission control, you can set which users can access which directories, passwd is to set the user and password, Svnserve is to set up SVN-related operations.
2.1 Set passwd First

[Users]
# happy = Happysecret
# Sandy = Sandyssecret
Hello=123
User name = 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 # Enables authorized users to have write permissions
password-db = password
authz-db = authz # access Control file
Realm =/opt/svn/repos # authentication namespace, Subversion is displayed in the authentication prompt and as a keyword for credential caching.
The default configuration is used. All of the above statements must be shelf written, the left cannot be blank, or an error will occur.
Well, with the above configuration, your svn will be OK.

3. Connection
Start svn:svnserve-d-r/opt/svn/repos
If you already have SVN running, you can run it on a different port.
svnserve-d-r/opt/svn/repos--listen-port 3391
So that the same server can run multiple Svnserver

OK, after the successful launch, you can use it.
It is recommended to use TORTOISESVN with the connection address: Svn://your server addresses (if port is required to specify ports: port number)

After the connection can upload the local files, effectively manage your code.

This article is from the "My Ops Road" blog, so be sure to keep this source http://pythonhome.blog.51cto.com/10015972/1622601

Install SVN under CentOS

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.