Install, configure, and use svn in linux

Source: Internet
Author: User
Installation environment: centos 1. install required software packages. yuminstallsubversionmod_dav_svn 2, basic SVN server configuration 1, create a directory to store all SVN files # mkdir/home/svn2, new... installation environment: centos
1. install required software packages. yum install subversion mod_dav_svn 2, basic SVN server configuration 1, create a directory to store all SVN files # mkdir/home/svn 2, create a version repository # svnadmin create/home/svn/test 3, initialize the directory in the version repository, and import the original code. if the original code already has files related to svn, switch to the original code directory, delete these svn-related files and folders. Assume that/home/user/code/src stores the source code # cd/home/user/code/src # find. /-name "*. svn "| xargs rm-rf # svn import/home/user/code/src file:///home/svn/test/ -M "init test code" 4. add an entry in the format of "username = password" in the/home/svn/test/conf/passwd file. [Users] admin = adminpass user1 = 123456 5. modify the user access policy/home/svn/test/conf/authz to record the user's access policy: [groups] [test: /] admin = rw user1 = r * = [test:/modue] admin = rw user1 = rw * = above indicates that admin has all read and write permissions, user1 is readable and writable in the modue folder, and read-only in the root directory. You can also configure Group permissions. 6. modify/home/svn/test/conf/svnserve. conf file to make the user and policy configuration take effect. svnserve. the conf file is as follows: [general] anon-access = none auth-access = write password-db = passwd authz-db = authz 7, start the server # svnserve-d-r/home/svn 8, and test the server # svn co svn: // 192.168.1.5/test. enter the user password as prompted, enter the svn user name and password. # Cd test # vim main. c # svn add main. c # svn commit main. c-m "comment" Adding main. c Transmitting file data. committed revision 2. (The test is submitted successfully) 3. configure the HTTP support for the SVN server (you can view the code in the browser) for detailed configuration, refer http://www.blogjava.net/jasmine214--love/archive/2010/09/26/332989.html 1. modify httpd. conf and add/etc/httpd/conf/httpd. conf to the SVN server. 2. restart the HTTPD server # service httpd restart 3 and access it through a browser. http://192.168.1.5/test 4. possible problems 1. if the internet cannot be accessed normally, Port ING may be required to open port 3690 to the Internet. Run telnet xxx. xxx. xxx. xxx 3690 2. in windows checkout, if the following error occurs: the reason is that there are files with the same name but different cases in linux. One solution is to avoid this situation and change it to a different name.

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.