Install SVN server on centos

Source: Internet
Author: User

Reference: http://www.ha97.com/4467.html

1.

# Current Directory:/home/lizk

Mkdir SVN

CD SVN

Svnadmin create MyApp

SVN import/home/lizk/project file: // home/lizk/SVN/MyApp-M "init directory"

2.

# Current Directory:/home/lizk/SVN/MyApp/Conf

# Edit file-passwd

[users]# harry = harryssecret# sally = sallyssecretpm = hello

# Edit authz

[groups]# harry_and_sally = harry,sally# harry_sally_and_joe = harry,sally,&joe[/]pm = rw* =

# Edit svnserve. conf

general]anon-access = noneauth-access = writepassword-db = passwdauthz-db = authz

3.

Start:

Svnserve-d-r/home/lizk/SVN

Close:

PS-Aux | grep svnserve

Kill-9 ID No.

4. Check out

SVN Co SVN: // 192.168.60.10/MyApp

5. boot

Reference: http://blog.csdn.net/linglongwunv/article/details/5186968

Vim/etc/rc. d/rc. Local

/Usr/bin/svnserve-d-r/home/lizk/SVN

Note:

SVN list SVN: // 192.168.60.10/MyApp // list Directories

SVN export SVN: // 192.168.60.10/MyApp, used to export a clean project file, that is, excluding. SVN file information.

SVN mkdir SVN: // 192.168.60.10/A/B/C-M "" // create a directory

SVN remove SVN: // 192.168.60.10/a/B/trunk-M "Sss" // Delete directory

SVN mkdir SVN: // 192.168.60.10/A/B/C/branches-M "" // create a directory

SVN import V1.0/SVN: // 192.168.60.10/A/B/C/trunk-M "init trunk" // import the project file

SVN checkout SVN: // 192.168.60.10/A/B/C/trunk./myproject // Export

Svn cp svn: // 192.168.60.10/A/B/C/trunk SVN: // 192.168.60.10/A/B/C/branches/V1.0-M "init V1.0 branch" // create Branch

SVN info // view SVN information of the current directory

SVN switch -- relocate SVN: // lizk@10.10.10.72/A/B/C/branches/v1.8.9 SVN: // lizk@192.168.1.78/A/B/C/branches/v1.8.9 // modify the svn Server IP, or after deploying it to another machine, relocate.

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.