Install, configure, and use centossvn

Source: Internet
Author: User
Tags svn client
During the summer vacation, I changed a 40 gb ssd, ran two systems, and ran out of service. I mainly used some code resources and books to occupy the hard disk. so I configured SVN on the school server, in the future, the code will be passed on to cultivate your own version management habits. The installation and configuration are as follows: http://hi .... During the summer vacation, I changed a 40 gb ssd, ran two systems, and ran out of service. I mainly used some code resources and books to occupy the hard disk. so I configured SVN on the school server, in the future, the code will be passed on to cultivate your own version management habits. The installation and configuration are as follows: http://hi .Baidu.com/chxl800/item/445d9dd7b095d14afa576821installation :#yum install subversion to test whether the installation is successful # svnserve -- version indicates that the installation is successful if version information is displayed: If you want to automatically configure http://blog.csdn.net/kangquan2008/article/details/8539427 . /Root/svn/repo is the path of the created warehouse, theoretically, it can be any directory 1. create a repository svnadmin create/home/svn/repo2 and modify the configuration file/home/svn/repo/conf/svnserve. conf # Remove # [general] # [general] # Anonymous access permission, which can be read, write, none, the default value is readanon-access = none # authenticate the user's permissions, which can be read, write, or none. the default value is writeauth-access = write # Password database path, remove the previous # password-db = passwd3 and modify the configuration file passwd. [Users] name = password4. start the SVN server and run the svnserve-d-r/home/svn -- listen-host 192.168.1.16 command for a single code repository.-d indicates running in the background, -r specifies the root directory of the server, so that you can directly access the server using svn: // server ip address. If the server has multiple ip addresses, use listen-host to specify the ip address of the listener. we can access the svn server through svn: // 192.168.1.16 on the svn client. for multiple code repositories, we can also use the-r option to specify the server root directory at startup, however, you need to write the relative path of each repository relative to the svn root directory during access. for example, we have two code repositories:/home/repo1 and/home/repo2. We use svnserve-d-r/home -- listen-host 192.168.1.16 to start them, when accessing the client, you can use svn: // 192.168.1.16/repo1 and svn: // 192.168.1.16/repo2 to access two projects respectively. 5. stop the SVN server. the default port killall svnservesvn is 3690, open this port on the firewall. /Sbin/iptables-a input-I eth0-p tcp -- dport 3690-j ACCEPT/sbin/service iptables save6, use the svn client to import the tortoisesvnlinux command of the windows client
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.