Linux build svn Server
This is a Linux distribution:CentOS 7.2
1. Install svn
# Yum Install Subversion
1. create a new directory to store svn files
# MKDIR/SVN
2. Create a new resource warehouse
# Svnadmincreate/svn/project
# Ls-l/svn/project Total 24
Drwxr-xr-x 2 root root 4096 June 09:10 conf
Drwxr-sr-x 6 root root 4096 June 09:10 db
-r--r--r--1 root root 2Jun 09:10 format
Drwxr-xr-x 2 root root 4096 June 09:10 Hooks
Drwxr-xr-x 2 root root 4096 June 09:10 locks
-rw-r--r--1 root root 229Jun 09:10 README.txt
Application Description:
-
-
Hooks: directory where hook script files are placed
Locks: directory of db_logs lock files that place Subversion db lock files
Format: is a file that only has an integer that represents the current vault configuration version number
Conf: The configuration file to place the warehouse (Access account, permissions, etc.)
DB: Version data store directory
3. Configure The SVN service configuration file conf/svnserver.conf
# Vim Conf/svnserver.conf
[general]anon-access = noneauth-access = writepassword-db =/svn/project/conf/passwdauthz-db =/svn/project/conf/ Authzrealm = My Test Repository #这是个提示信息
4. Add Access user and password
# Vim CONF/PASSWD
[Users]test1 = 123456test2 = 123456
5. Authorization for new users
# Vim Conf/authz
[groups]admin = Test1user = test2 [/] @admin = Rw@user = R *=
/indicates that permissions are set on all subdirectory scopes under the root directory (that is , the/svn/project directory);
[/test] indicates that permissions are set on the test item in the repository ;
*= means that except for the set of user groups, all other users are empty permissions
Note: Changes to the rights profile take effect immediately without restarting
6. Start the service
The CentOS 7.2 start-up service is placed in /usr/lib/systemd/system and the default warehouse is /VAR/SVN
There is a need to /etc/sysconfig/svnserve in the /VAR/SVN Change into /svn/project
Start the service : # systemctl start Svnserve
2. using client connections
Open Tortoisesvnrepository Browser Tools
in the Enter inthe URL: svn://192.168.3.23 enter the user name and password to login
Linux Build SVN server