How to build an SVN service under Linux

Source: Internet
Author: User

    • ? Install SVN

Use the command yum install Subversion

If you are prompted for the above error, run as Administrator

Using the command su root

Re-execute yum install Subversion

2. View SVN version

Svnserve--version

3, create SVN repository directory

Mkdir-p/PROJECTS/SVN

#mkdir = new Folder

In a word, it is created under the root directory called "Projects", which contains the creation of the SVN folder.

4 Create a new test repository

Svnadmin CREATE/PROJECTS/SVN/TESTSVN

#在svn里面创建一个叫testsvn的项目

#打开可以看到

5. Modify the project's configuration file

#authz – Configure Permissions File

#passwd – Configure your account password

#svnserve – Configure Server files

#权限的配置 Authz

If the user is under Read-only, then use chmod 777 + file

Double-click the file directly. If you are editing, you can configure multiple accounts

Account number and group:

Admin group account has LYH

The test group account has test1, Test2, test3

Permission Configuration Explanation:

[testsvn:/] #项目名字

@admin = RW (admin grouping is read and write to the entire TESTSVN repository)

test1 = RW (account test1 can read and write to the entire TESTSVN repository)

[Testsvn:/test] #项目组

@test = RW (test grouping is read/write to the entire testsvn/test directory)

Configure password

Account Number = password (for the sake of convenience, take the same)

Service configuration

Open and modify a comment

Start SVN service

Svnserve-d-r/projects/svn/

If the above error occurs, please close the SVN service

Stop killall svnserve

And then open it again.

Svnserve-d-r/projects/svn/

L Notes

1. If you are prompted to connect to the server, make sure that the 3690 port of the remote SVN server can be accessed

Firewall-cmd--zone=public--add-port=3690/tcp--permanent

Systemctl Restart Firewalld

Modify the Svnserve configuration and set boot boot

Vim/etc/sysconfig/svnserve

Change/VAR/SVN to its own code base address

Set power-on self-boot

Systemctl Enablesvnserve.service

PS: Above is the build SVN under the simple say to turn on SVN

Access the SVN service under Linux

Using commands

Ifconfig #查看ip地址

Enter the IP address you just acquired

will appear

The above screen is because there is no directory in SVN, no items

So go back to Linux.

Feel free to create a new project, I create a new file for the project,

After the correct input, the above interface appears, prompting to enter the user name, password.

If you can choose right-click Export, push the code down

How to build an SVN service under Linux

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.