Detailed svn deployment services under Linux

Explanation

环境:
操作系统:centos 8.0
IP:39.100.228.13

installation

With ROOT account login, execute the following command in the console, like it has been installed by default.

[root@localhost ~]#yum install svn


Enter svnserve --version review the installation information

can be seen here is version 1.10.2

Configuration

  • Create a directory and repository
[root@qinshengfei ~]# mkdir -p /home/svn
  • -p create multi-level directory recursive
  • Enter svnadmin create / home / svn / project to create a repository
[root@qinshengfei ~]# svnadmin create /home/svn/project
  • Enter / home / svn / project directory, we can see the following files and folders:

  • Configuring User Access
    switched into the conf directory

 [root@qinshengfei project]#cd conf

  • authz user configuration, user group read and write permissions
  • passwd configure users, groups, passwords
  • svnserve.conf svn configuration parameters related services

    Configuration passwd file

  • Add a line in the file shelton = 123456, shelton is the account name, password is 123456

Authz configuration file

  • Add two lines in the file:
  • [\] Represents the root directory
  • shelton = rw permissions to read and write device shelton account

Configuration svnserve.conf

Configuration information is explained as follows:

  • Anonymous access permissions, which can be read, write, none, the default is read

  • anon-access=none
  • The authorized user has write access

  • auth-access=write
  • Password for the database path

  • password-db=passwd
  • Access control file

  • authz-db=authz
  • Certification namespace, subversion authentication prompt will display inside, and as a key credential cache

  • realm=/home/svn/project

start up

 [root@qinshengfei ~]#svnserve -d -r /home/svn/project
  • Start the process to see if there is

Connection Test

Our windows client, for example, good tortoisesvn in our computer installation

tortoisesvn Download: https: //tortoisesvn.net/

  • We create a new folder called: project to synchronize files svn
  • Connect svn server
  • Enter the account number and password

  • When such a box appears, indicating svn client has been synchronized to the server connected to the svn

to sum up

  • Svn service deployment on the cloud server, you need to open port 3690 on the host's cloud security configuration
  • 连接svn服务器,先配置好账号、密码相关权限等

Guess you like

Origin www.cnblogs.com/qinshengfei/p/12170671.html