Linux CentOS 6.5 Build SVN server

Source: Internet
Author: User

Example: Web1

1. Install Subversion

#yum Install subversion#mkdir-p/oop/svn///Create SVN directory #chmod-R 777/OOP/SVN//Modify directory permissions to 777#svnadmin CREATE/OOP/SV N/webapps//Create an SVN version repository WebApps (webapps name yourself) #cd/oop/svn/webapps/conf//Enter the configuration file directory under the WebApps version repository to modify three profiles under this directory 1. SVNSERVE.CONF//Configure the Repository information and the path to the user file and user password file, the repository path #vi svnserve.conf Modify several places: #anon-access = read#auth-access = write# Password-db = passwd The three lines in front of the #号去掉, the leftmost of each line can not have spaces, change to the following: Anon-access = none//read changed to noneauth-access = Writepassword-db = Pass Wdrealm = WebApps//change to own repository save exit: X 2) Modify Authz file, create permissions for SVN group and group user #vim Authz[group]webapps = Tom//Create a repos group, add a user Name if there is more than one comma, such as tom,tom2 [/]//Modify the permissions under the root directory @webapps = RW//webapps Group user permissions for read-write Tom = rw//tom User's permissions for read/write * = R/  /Other user's permissions are read-only 3) passwd file Create or modify user password #vim passwdtom= a123//username Tom's password for A123 save exit: X two. Set boot boot file 1. Edit the contents of the/etc/rc.local file as follows (add a line below touch/var/lock/subsys/local) #!/bin/sh## This script'll be executed *after* all the other Init scripts.# can put your own initialization stuff in here if you Don ' t# want to does the full Sys V style init stuff. Touch/var/lock/subsys/localsvnserve-d-r/oop/svn/webapps three. Start SVN service 1. Start SVN service, SVN service default port is 3690, you can use "NETSTAT-NTLP" To see if the service started successfully: #svnserve-D-r/oop/svn/webapps If you already have SVN running, you can switch to a port to run svnserve-d-r/opt/svn/repos–listen-port 339        1 This allows the same server to run multiple Svnserve 2. A. Recommended for use with TORTOISESVN, connection address: Svn://your server address If you need to add ports to the specified port: port number B. or connect using the command line: SVN co svn://ip/can be used after the connection.

  

Linux CentOS 6.5 Build SVN server

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.