How to use CentOS to build SVN servers

Source: Internet
Author: User
Although it is easy to build SVN on windows, the efficiency is not high, which is of course compared with Linux. however, setting up SVN on linux is very cumbersome. so this article will teach you how to set up SVN installation on Centos # y... although it is easy to build SVN on windows, the efficiency is not high, which is of course compared with Linux. however, setting up SVN on linux is very cumbersome. This article will teach you how to set up SVN installation on Centos # yum install subversion 1) create svn user # groupadd svn # useradd-g sky user // add user to sky ??? /Div> switch the user # create and maintain the code library after su svn, and use this account for operations. 2) create a version library and edit it. add the following configurations to bash_profile: SVN_HOME =/opt/lampp/htdocs/_ svnexport SVN_HOMEPATH = $ PATH: $ SVN_HOME/binexport PATH to create a version Library: # svnadmin create -- fs-type fsfs web: conf/db/format hooks/locks/README.txt 3 appears under/opt/lampp/htdocs/_ svn/web) set the user name and password for web access to the edit File/opt/lampp/htdocs/_ svn/web/conf/passwd. set the user name and password in [users] in the following format: username 1 = password 1 username 2 = password 2 for example test = test, indicates that the username is test, and the password is test ?? File/opt/lampp/htdocs/_ svn/web/conf/authz [groups] www = 7di, user1, user2, user3, user4, user5, user6, wasing [/] @ www = rw * = edit the file/opt/lampp/htdocs/_ svn/web/conf/svnserve. add several lines to the conf configuration: anon-access = readauth-access = writepassword-db = passwdauthz-db = authz. Note that the first letter of money in the row where the configuration is located cannot contain any space, otherwise, a file similar to svnserve will appear. conf: 12: Option expected. you can use the above configuration to configure svn. 4) If svn is already running, you can run svnserve-d-r/opt/lampp/htdocs/_ svn/web -- listen-port 3391 on another port so that the same server can run multiple svnservers or use the following?? The failure M-course netstat-ntlpkill-9 id is ready, and can be used after the startup is successful. TortoiseSVN is recommended. the connection address is svn: // URL /? Object name? (If the specified Port needs to be added: port number) after the connection, you can upload local files to effectively manage your code if? Output ?,?? Z check for fire prevention ??? Set # vi/etc/sysconfig/iptables to add: -a input-m state -- state NEW-m tcp-p tcp -- dport 3690-j ACCEPT # service iptables restart: # echo 'svnserve-d-r/opt/lampp/htdocs/_ svn/'> start_svn.sh # chmod 0777 start_svn.sh #. /start_svn.sh: place the script in the automatic startup script: modify the file as root:/etc/rc. d/rc. local, add the following text: su-c/opt/lampp/htdocs/_ svn/start_svn.sh 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.