Linux (CentOS 7.0) uses the Yum installation configuration and uses SVN.

Source: Internet
Author: User

Linux (CentOS 7.0) uses the Yum installation configuration and uses SVN.

Reprint is marked original address: http://blog.csdn.net/u010587274/article/details/51015291

Personal public Number: tanzi_888 (Tam zi technology circle)

One installation Instructions

System Environment: CentOS-7.0
Installation method: Yum Install (source installation is prone to version compatibility issues)
Install software: The system automatically downloads SVN software

Author User: Root

Two check the installed version

#检查是否安装了低版本的SVN
[Email protected] ~]# Rpm-qa Subversion
#卸载旧版本SVN
[email protected] ~]# Yum Remove subversion

Three Install SVN
Install the necessary packages
[[Email protected] ~] Yum Install Subversion
[[Email protected] ~] Yum Install MOD_DAV_SVN
[email protected] ~]# Yum install httpd httpd-devel Subversion mod_dav_svn
Mod_auth_mysql

Confirm that the SVN module is installed

[Email protected] ~]# Cd/etc/httpd/modules
[[email protected] ~]# ls | grep SVN
Mod_authz_svn.so
Mod_dav_svn.so

Quad, basic SVN server configuration

1 Create a new directory to store all SVN files
[[Email protected] ~] Mkdir/root/project

2 Create a new version repository
[[Email protected] ~] Svnadmin create/root/svn/project

3 Initialize the catalog in the repository, import the original code
If the original code already has SVN's related files, switch to the original code directory, first delete these SVN-related files and folders.
Assume that/root/others holds the source code
[[Email protected] ~] Cd/root/others
[[Email protected] ~] Find./-name "*.SVN" | Xargs RM-RF
[[Email protected] ~] SVN import/root/others file:///root/svn/project/-M "Init project"

4. Configure the engineering user and set user permissions
Enter the configuration directory for the project:
[[Email protected] ~] cd/source/svn/project/conf
The following altogether three files: Authz passwd svnserve.conf
passwd: The user information is stored inside, the basic format is: User = passwd
Authz: Store the user's group information, and the access rights of each group
SVNSERVE.CONF: Store the basic configuration of the server (described below)

passwd inside Add user
Open the passwd file, and add the following:
[Users]
admin = 12345

Authz Configuring User Rights
Open the Authz file, and add the following:
[Groups]
[project:/]
admin = RW
* =

The above means that admin has all the read and write permissions.
You can also configure permissions for groups, and the specific group permissions configuration can refer to one of my other blogs:
SVN security and Permissions configuration under Linux Click to open link

5 Modify svnserve.conf for user and policy configuration to take effect
Open a. svnserve.conf file, and modify the svnserve.conf file to modify the following:
[General]
Anon-access = None
auth-access = Write
Password-db = passwd
Authz-db = Authz

6 starting the server
[[Email protected] ~] svnserve-d-R/ROOT/SVN

7 Test Server
[[Email protected] ~] SVN co svn://192.168.32.186/project
(Assuming your IP is: 192.168.32.186)
Follow the prompts to enter the user password, and then enter the SVN username, password, you can.

warm tip: At this time you can find SVN CheckOut in the local client, click, will pop up a popup box, URL of
Repository: Enter: Svn://192.168.32.186/project, then enter the user and password you previously set can!!!

Linux (CentOS 7.0) uses the Yum installation configuration and uses SVN.

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.