Linux Build SVN

Source: Internet
Author: User
Tags svn client tortoisesvn

Linux Build SVN

1, I first installed a virtual machine, the configuration is:

The execution commands are:

[Email protected] ~]# cat/etc/redhat-release

[Email protected] ~]# uname-r

The picture shows that my environment is 64-bit, the system is centos6.8,

2, let's check if SVN has been installed:

Execute command: [[email protected] ~]# Rpm-qa Subversion

There is a picture of my environment is not installed SVN, because there is no installation, so we need to install,

Execute the following command: [[email protected] ~]# Yum install subversion-y if successful

Let's check if the installation was successful. SVN

Execute command: Rpm-qa subversion

3, start configuring SVN

Set up SVN repository data store directory Svndata and user and password permissions directory svnpasswd

Execute the following command:

[Email protected] ~]# mkdir-p/application/svndata

[Email protected] ~]# mkdir-p/application/svnpasswd

Start the SVN root directory specified by the SVN service

[Email protected] ~]# svnserve-d-r/application/svndata/

View SVN processes and ports

[Email protected] ~]# Netstat-lntup | grep svnserve

TCP 0 0 0.0.0.0:3690 0.0.0.0:* LISTEN 2100/svnserve

[Email protected] ~]# Ps-ef | grep SVN | Grep-v grep

Root 2100 1 0 08:04? 00:00:00 svnserve-d-r/application/svndata/

[Email protected] ~]#

Show all processes shown on port 3690

Only SVN is known to occupy this port.

4, build the project repository

How to view Help

[Email protected] ~]# svnadmin Help

Create a new Subversion project Sadoc, a project like Sadoc can create multiple, each project corresponding to different code, the name is best separated by the project name area

[Email protected] ~]# svnadmin Create/application/svndata/sadoc

View the project structure you just created

[Email protected] ~]# tree/application/svndata/sadoc/

After the project is established, we adjust the SVN configuration file and permissions

Configure allow user long read and write access

[Email protected] ~]# cd/application/svndata/sadoc/conf/

Modify the previous backup to prevent accidental deletion

[email protected] conf]# CP svnserve.conf Svnserve.conf.ori

Bulk replace SED

[Email protected] conf]# sed-i ' s/# anon-access = read/anon-access = None/g ' svnserve.conf

[Email protected] conf]# sed-i ' s/# auth-access = write/auth-access = Write/g ' svnserve.conf

[Email protected] conf]# sed-i ' s%# password-db = passwd%password-db =/application/svnpasswd/passwd%g ' svnserve.conf

[Email protected] conf]# sed-i ' s%# authz-db = authz%authz-db =/application/svnpasswd/authz%g ' svnserve.conf

Compare after modification

[Email protected] conf]# diff Svnserve.conf.ori Svnserve.conf

Copy the password and permission template to the/APPLICATION/SVNPASSWD directory we created ourselves

[[email protected] conf]# pwd && ll

[email protected] conf]# CP passwd authz/application/svnpasswd/

[Email protected] conf]# ll/application/svnpasswd/

Handle permissions, only the highest users have large permissions, others do not

[Email protected] conf]# cd/application/svnpasswd/

[[email protected] svnpasswd]# chmod 700 *

[email protected] svnpasswd]# LL

5, create a user and password for SVN and authorize access to the specified project library

Add SVN user and password

[Email protected] svnpasswd]# pwd

Cat >> passwd <<eof

Long = 123456

Zhangsan = zhagnsan123

Eof

Check for two additional users later

[Email protected] svnpasswd]# tail-5 passwd

Assigning Permissions to users

[Email protected] svnpasswd]# pwd

[email protected] svnpasswd]# cat Authz

Sagroup = Long,zhangsan This defines a sagroup group, which contains multiple users, separated by commas.

[sadoc:/] Sadoc project name:/root directory

Long = RW wants Xeon users to have read and write permissions

Zhangsan = R Read permission to Zhangsan user

@sagroup = R defines the Read permission for an SA group

Restart SVN active configuration

[Email protected] svnpasswd]# Pkill svnserve

[Email protected] svnpasswd]# svnserve-d-r/application/svndata/

[Email protected] svnpasswd]# Ps-ef | grep svndata|grep-v grep

[Email protected] svnpasswd]# Netstat-lntup | grep SVN

[[email protected] svnpasswd]# lsof-i: 3690

Installing the SVN client

The installation process ignores Windows 64-bit:

Https://sourceforge.net/projects/tortoisesvn/files/1.9.4/Application/TortoiseSVN-1.9.4.27285-x64-svn-1.9.4.msi/download

After the installation is complete, I created a folder with test file name on D drive,

Web links are starting with SVN, the middle of my virtual machine Ip,sadoc is the project I created in SVN

Click the OK button, the user and User name input box appears, enter the user and user name I created above;

Then upload a document in the file

To this Linux system install SVN end!!!!!!

Linux Build SVN

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.