CentOSSVN server installation configuration note

Source: Internet
Author: User
Tags svn client
CentOSSVN server installation configuration note recently partnered with a friend to realize that the file merge after source code editing is a super head-scratching problem? (? _?)?, Think of a good version control tool, but also to cultivate your own version management good Xi CentOS SVN server installation configuration note recently with a friend cooperation project, realizing that the file merge after source code editing is a super head-scratching problem? (? _?)?, I thought of a good version control tool. to cultivate my own good habits of version management, I decided to build a SVN on the server. it was quite simple, the country has been entangled for a long time because of a small problem. Using a small article to record it is also to let yourself have a long snack ~ During the configuration period, I made a reference to the experience of various great gods on the internet. I would like to thank you for your reference ~ Installing and installing SVN is very simple, especially for CentOS: # yum install subversion # yum install mod_dav_svn check whether the installation is successful # svnserve -- version can display the version information normally ~ Build a version Library # svnadmin create/svn/project is the path of the build version repository, in theory, you can configure SVN for any directory to enter the configuration Directory of the created repository/svn/project/conf to modify the file svnserve. conf [general] anon-access = none // Anonymous access permission auth-access = write // authenticate user permission password-db = passwd // password configuration file path, the default value is the passwd file realm = SVNofMyProject in the same directory. // The authentication mark is removed from the corresponding line. # make the statement take effect, remember that you cannot leave a space before configuring the user name and password to modify the passwd file [users] usr1 = psw1usr2 = psw2 to start the SVN server # svnserve-d-r/svn -- listen-host 192.168.0.3- D indicates running in the background.-r specifies the root directory of the server. in this way, you can use SVN: // 192.168.0.3/project on the svn client to access the SVN server. By the way, run the following command to view the running SVN process # ps-ef | grep svn: run the command # killall svnserve or # kill-9 xxxx to stop the SVN server. At this point, it would be okay to execute co on the server. However, other terminals may not be able to access our server through svn. the default port for configuring SVN in the firewall is 3609, open this port on the firewall #/sbin/iptables-a input-I eth0-p tcp -- dport 3690-j ACCEPT #/sbin/service iptables save Alas, I planted it here... It is best to look at the eth0 parameter. if your server has a lot of network adapters just like me, and it is not eth0 .. You have to modify it. You can run the ifconfig command to view network parameters. so far, you should be able to successfully connect to the remote SVN server. you can use the command # svn co svn: // 192.168.0.3/project and enter the user name and password you have configured as prompted.
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.