CentOS6.8 Simple Quick Install svn-test Small white benefits

Source: Internet
Author: User
Tags svn client

1.yum Install Subversion installation svn


2.SVN--version Viewing the installation version


3.svnadmin create/duoceshi/svn/repo/Create a repository, (/duoceshi/svn/repo This directory is customized, if there is no execution when the command is automatically created)


4.ls-al/duoceshi/svn/repo View/duoceshi/svn/repo/folder discovery contains Conf, db,format,hooks, locks, README.txt and other files, stating that an SVN repository has been established.


5. User account password configuration:

-bash-4.1# Vim passwd

# # # This file is a example password file for Svnserve.

# # # Its format was similar to that of svnserve.conf. As shown in the

# # # example below it contains one section labelled [Users].

# # # The name and password for each user follow, one account per line.

[Users]

# Harry = Harryssecret

# sally = Sallyssecret

Duoceshi = 123456

Icechien = 123456


6. User rights configuration, input Vim Authz, add the following content:

#设置根目录表示svn目录所有资源

[/]

#用户设置读写权限

Duoceshi = RW

Icechien = RW


7. Configure the Svnserve.conf service file to add the following:

[General]
#匿名访问的权限, can be read,write,none, default is read
Anon-access=none
#使授权用户有写权限
Auth-access=write
#密码数据库的路径
password-db=passwd
#访问控制文件
Authz-db=authz
#认证命名空间, Subversion is displayed in the authentication prompt and is used as a keyword in the credential cache
Realm=/duoceshi/svn/repo


8. Start SVN and use the following command:

Svnserve-d-r/duoceshi/svn/repo/


9. View the boot process and the listening port number

To view the startup process:

-bash-4.1# Ps-ef|grep svn|grep-v grep

Root 2397 1 0 11:00? 00:00:00 svnserve-d-r/duoceshi/svn/repo/

To view the listening port condition:

-bash-4.1# Netstat-ln|grep 3690

TCP 0 0 0.0.0.0:3690 0.0.0.0:* LISTEN


10. Start and stop SVN commands

Svnserve-d-r/duoceshi/svn/repo/(Start svn service)

Killall Svnserve (Close SVN service)


The 11.SVN service is started and the connection is tested using the client.

Client Connection address (install SVN client on client host): svn://192.168.1.220

Username/password: duoceshi/123456 icechien/123456

Test file Upload update and other operations


This article is from the "Multi-Surveyors" blog, please be sure to keep this source http://icestick8586.blog.51cto.com/9867871/1883540

CentOS6.8 Simple Quick Install svn-test Small white benefits

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.