Build a Subversion repository on CentOS6

Source: Internet
Author: User
1. first, install the subversion package. you can run the following command to install [plain] sudoyuminstallsubversion2. then create the subversion root path. all created subversion modules or repositories can be under this directory in the future, assume that the directory is/op...
1. first install the subversion package. run the following command to install [plain] sudo yum install subversion 2. then create the subversion root path. all the subversion modules or repositories created in the future can be under this directory. Here we assume that this directory is/opt/svn 3. assume that you need to create a module repository named myproject, run the following command to create [plain] sudo mkdir/opt/svn/myproject sudo svnadmin create/opt/svn/myproject 4. after the directory is created, you need to modify the configuration information of the myproject repository and specify the access users and permissions to modify/opt/svn/myproject/conf/svnserve. conf file [plain] [general] anon-access = read auth-access = write Password-db = passwd 4.2 modify/opt/svn/myproject/conf/authz file and set the user access permission [plain] [myproject: /] kongxx = rw 4.3 modify/opt/svn/myproject/conf/passwd file and set the user password [plain] [users] kongxx = 123456 5. after the above steps, the myproject warehouse has been created and the user and permissions have been assigned, the following command starts the subversion service [plain] sudo svnserve-d-r/opt/svn 6. for subversion, we recommend that you create the trunk, branches, and tags directories for mainline, branch, and tag. The specific command line is as follows. when you run the following command, you will be prompted to set an editor required for subversion. you can set your frequently used editor to the prompt environment variable. [Plain] sudo svn mkdir svn: // localhost/myproject/trunk sudo svn mkdir svn: // localhost/myproject/branches sudo svn mkdir svn: // The Command [plain] svn cp-m'create release1.0 branch' svn: // localhost/myproject/trunk svn for creating branches and labels is as follows: // localhost/myproject/branches/release1.0 svn cp-m 'create release1.0 branch' svn: // localhost/myproject/trunk svn: // localhost/myproject/tags/release1.0 7. finally, you can access the created svn repository [plain] svn co http: // using the following command or graphical tool :// /Myproject/trunk
From the column kongxx
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.