Under-Linux SVN installation and deployment/read/password/user detailed

Source: Internet
Author: User
Tags svn iptables

Step One: Quick Start Linux Install SVN

The code is as follows Copy Code

Installation: Apt-get Install Subversion (apt-get installation)

Installation: Yum install Subversion (yum installation)

Whether the test was successful

The code is as follows Copy Code

Svnserve–version

Svnserve, version 1.6.6 (r40053)
Compiled at DEC 12 2009,05:04:54

The following version library back-end (FS) modules are available:

* Fs_base: module can only operate BDB version library.
* FS_FS: module works with the text file (FSFS) version Library.

Cyrus SASL certification is available.

Step Two: Create the root directory

The code is as follows Copy Code

Svnadmin Create/backup/svn/newrepos

LS Repos
Conf/dav/db/format Hooks/locks/readme.txt

Test

The code is as follows Copy Code
Mkdir/test
Vi/test/a.txt

Input Aaaaaa1

Import file

The code is as follows Copy Code

SVN import/test File:///backup/svn/newrepos/some/project

Start SVN

Svnserve-d-r/backup/svn/newrepos/–listen-host 211.124.27.20

However, after the import, the directory tree used is not converted to a working copy, in order to start work, still need to run SVN checkout export a working copy. Because after import, files exist in the DB folder in a special form in the version library and cannot be viewed in clear text. You must export your working copy (workcopy) using SVN checkout to view it in a normal way.

FAQ: The first time I saw file://this structure thought it was someone else got it wrong. file://this pattern before Windows old see this path, thinking how Linux will have this dongdong, structure found that this structure is the use of SVN.

The code is as follows Copy Code

SVN checkout File:///backup/svn/newrepos/some/project/workcopy

There's one more workcopy in the root directory.

It worked.

Step three: Read locally

Local trial direct command line mode

The code is as follows Copy Code
SVN checkout Svn://211.124.27.20/test

The download was successful.

Fourth Step: Password

Settings for users and passwords

The code is as follows Copy Code

#去掉 #[general] The # number in front
[General]
#匿名访问的权限, can be read,write,none, default to read
Anon-access = None
#认证用户的权限, can be read,write,none, default to write
auth-access = Write
#密码数据库的路径, get rid of the front #
Password-db = passwd

Note: All rows must be below or the error is not correct.
Suggestion: In order to prevent unnecessary mistakes, I suggest you cover up the original contents of the file directly with my content.

Modify the configuration file passwd.

Code

The code is as follows Copy Code
[Users]
Yuexiaosheng = *******

Restart SVN

Do not enter password read remove

The code is as follows Copy Code
SVN checkout Svn://211.124.27.20/test1
Authentication realm:9d495645-ebf4-41af-b4cf-beee4fe0f067

Displays no permissions.

With the user landing, you need to write this

The code is as follows Copy Code
Svn–username=yuexiaosheng Checkout Svn://211.144.37.40/test1

Prompt for password enter my password

The file was successfully downloaded.

Fifth Step

Firewall settings

The SVN default port is 3690 and you need to open the port on the firewall.

  code is as follows copy code

/sbin/ Iptables-a input-i eth0-p tcp--dport 3690-j ACCEPT

/sbin/service iptables save

To stop the SVN server: Killall svnserv E

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.