Simple configuration process of SVN server in CentOS

Source: Internet
Author: User
To improve work efficiency, we use version control software to manage projects, such as svn and git. Next, we will take svbversion as an example to talk about how to install svn and deploy the project. I. install the svn server, use anonymous users to access and manage svn projects 1. first install svn server 1yuminstallsubversion-y2 and set the version Library Directory. the default listening port number is listen to 1svnserve-d-r/usr/svndata3 and create

To improve work efficiency, we use version control software to manage projects, such as svn and git. Next we will take svbversion as an example to talk about how to install svn and deploy the project.

1. install the svn server and use anonymous users to access and manage svn projects

1. first install the svn server

1 yum installsubversion -y

2. set the version Library Directory. the default listening port number is 3690.

1 svnserve -d -r /usr/svndata

3. create an svn project

1 svnadmin create /usr/svndata/gztest

4. test whether the project is successfully checked out. remember to add iptables to port 3690 to allow

12 cd/var/wwwsvn checkout svn://ip/gztest./

5. test whether the project is submitted successfully.

12 touchgztest.phpsvn commit ./

When submitting the request, the following error occurs: connection refused by. after reading many articles on the Internet, users are not assigned permissions. I can test anonymous users and all users can check out and modify code, check the configuration file vim/usr/svndata/gztest/conf/svnserve. conf uncomment the following line:

1 Anon-access = read # cancel the semicolon comment and ensure there is no space

A new line is added under the modified line:

1 anon-access = write

Note that no spaces are in front of all svn configuration files; otherwise, an error is reported. this is the provision of the svn configuration file.

6. submit svn after modification. no error occurs.


II. svn project management based on user permission allocation

1. modify the configuration file vim/usr/svndata/gztest/conf/svnserve. conf of the project and add the following content:

12345 anon-access = none      # Prohibit anonymous user accessauth-access = write     # Verify that the user has the write permissionpassword-db = passwd# File for saving the user name and passwordauthz-db = authz        # User permission authentication filesrealm = gztest          # Svn project file name-personal understanding

2. edit the vim/usr/svndata/gztest/conf/passwd file to add a user:

1 mytest = mytest     # On the left side of the equal sign is the user name and on the right side is the password

3. edit the vim/usr/svndata/gztest/conf/authz file to add a user group and add user permission control:

1 gztest = gzinfo,gznew # The user group is on the left, and the user name contained in the user group is on the right.

4. set the user group's permission to read and write the gztest project:

12 [gztest:/]@ Gztest = rw # you can set the read and write permissions for individual users.

5. use the user name in netbeans to check out the project gztest,

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.