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