First, the configuration in the SVN repository server
New version of the manual library catalog
mkdir /opt/svn
Create a repository using the svn command
svnadmin create /opt/svn/runoob
Use the command to start the service svnserve
svnserve to - D - R & lt directory - the listen - Port Port Number
-
-r: configuration determines the repository access.
-
--listen-port: Specifies the SVN listening port, without this parameter, the default monitor SVN 3690
Because not the same as -r configuration, SVN start can have two different access methods
Method 1: -r assigned directly to the repository (known as single library svnserve way)
svnserve -d -r /opt/svn/runoob
In this case, a svnserve can only work for a repository.
authz configuration file to configure the permissions of the repository should be written like this:
[groups]
admin=user1 dev=user2 [/] @admin=rw user2=r
Use like this URL: svn: //192.168.0.1/ to access the repository runoob
Second way: assigned to the parent directory repository (library called multi-mode svnserve)
svnserve -d -r /opt/svn
This case, a svnserve can work for multiple repositories
authz configuration file to configure the permissions of the repository should be written like this:
[groups]
admin=user1 dev=user2 [runoob:/] @admin=rw user2=r [runoob01:/] @admin=rw user2=r
If at this time you use [/], then the root of all libraries, empathy, [/ src] represents the src directory under the root directory of all the libraries.
Use like this URL: svn: //192.168.0.1/runoob runoob to access the repository.
reference:
https://www.runoob.com/svn/svn-start-mode.html
https://jingyan.baidu.com/article/91f5db1b382d9b1c7f05e3a3.html