Firewall, SVN server-side installation (YUM)

Source: Internet
Author: User

Yum Install Subversion

View installation Location

RPM-QL Subversion

The results are as follows:

SVN generates a few binaries in the bin directory

You can see how SVN is used

SVN--help

 

Create SVN repository Directory

Mkdir-p/var/svn/svnrepos

To create a version library

Svnadmin Create/var/svn/svnrepos

After executing this command, the following files are generated under the/var/svn/svnrepos directory

Enter the Conf directory (the SVN repository configuration file)

Cd/var/svn/svnrepos/conf

Authz file is a permission control file

passwd is the account password file

Svnserve.conf SVN service profile set account password
Vim passwd

Add users and passwords to the [users] block in the format: Account number = password, such as Test=test

Test=test

Set permissions

Vim Authz

Add the following code at the end

[/]test=rwtest1=r

This means that the repository root test has read and write access to it, and test1 only Read permissions.

Modify the Svnserve.conf file

Vim svnserve.conf

Open a few notes below:

anon-access = Read #匿名用户可读auth-access = write #授权用户可写password-db = passwd #使用哪个文件作为账号文件authz-db = Authz #使用哪个文件作为权限文件realm =/var/svn/svnrepos # Certified space name, directory where repository is located

Start the SVN repository

Svnserve-d-r/var/svn/svnrepos

Be sure to open SVN ports and test on Windows

Create a new test folder, and under that folder, right-click the SVN Checkout

e.g. (to install TORTOISESVN beforehand)

Fill in the SVN address, such as:

Enter your account password to use it normally.

Common errors:
When you start:
Svnserve-d-r/var/svn/svnrepos
Tips
Bind:address already in use
, SVN has been started, the default port is 3690;
You can kill and then turn it back on.
PS aux | grep SVN

Kill PID (PID is the PS out of the PID so stop service)

2. We can try to re-specify a port 8088 using the –listen-port 8088 parameter.
Svnserve-d-r/var/svn/–listen-port 8088

SVN cannot view history

Error item is not readable, or other operation, will produce
A hint like offline.
Open/var/svn/svnrepos/conf/vnserve.conf with Vim
Set anon-access = None
Then restart SVN

Firewall, SVN server-side installation (YUM)

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.