tutorial on installing SVN server in CentOS system

Source: Internet
Author: User

Installation:

The code is as follows Copy Code

# Yum Install Subversion

Test whether the installation was successful:

The code is as follows Copy Code

# Svnserve--version

To build a version library:

The code is as follows Copy Code

# mkdir/data/lin/svndata [directory definition]
# svnadmin Create/data/lin/svndata/project [Create version Gallery]

Configure the SVN configuration file (for ease of administration, multiple libraries call the same configuration file.) )

The code is as follows Copy Code

#每个版本库创建之后都会生成svnserve. conf main file
# vim/data/lin/svndata/project/conf/svnserve.conf
[General]
Anon-access = None
auth-access = Write
Password-db =/data/lin/svndata/conf/passwd
Authz-db =/data/lin/svndata/conf/authz
Realm =/data/lin/svndata/project
# mkdir/data/lin/svndata/conf
# vi/data/lin/svndata/conf/passwd//SVN User profile
[Users]
User1 = Password1
User2 = Password2
User3 = Password3
User4 = Password4
# vim/data/lin/svndata/conf/authz//SVN Permissions Control configuration file
[Groups] #设置组
group1 = User1,user2 #多用户用逗号隔开

[/] #根目录权限设置 (This is the folder "project")
User3 = RW #用户1权限是: Readable and writable
User4 = R #用户2权限是: readable, not writable
user = #什么都没写代表没有任何权限

@group1 = RW #设置组权限

To start the server:

The code is as follows Copy Code

# svnserve-d-r/data/lin/svndata
-D indicates to run in daemon (www.111cn.net background run)
-r/data/lin/svndata specifies that the root directory is/data/lin/svndata

To close the SVN server:

The code is as follows Copy Code

# Killall Svnserve
# PS aux | grep svnserve View service ports

Open SVN service on/etc/rc.d/rc.local join

The code is as follows Copy Code

Svnserve–d–r/data/lin/svndata

You can implement SVN auto boot
If it appears: unable to connect because the target machine is actively rejecting please try to close the firewall:

The code is as follows Copy Code

Service Iptables Stop

If the firewall is turned on, add an SVN port. The default pass is: 3690
The software used by the client is TORTOISESVN.
If the network adapter is installed in the virtual, select the shared host IP address

Use SVN small Summary

Objective: To implement an update every second of the local SVN Commit server.

Site path:/web/project_name/

Go to the Site Directory: SVN co SVN address./has been exported.

SVN update script: VI svnup.sh Create a script.

cd/web/project_name/
SVN up

Then perform svnup.sh every 1 seconds on the scheduled task.

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.