Install svn and configuration through yum under CentOS

1. surroundings##

  1. Install svn
    yum -y install subversion

  2. Configuration

Create a repository directory
mkdir /www/svndata

svnserve -d -r /www/svndata

  1. Build a repository

Create a new Subversion project
svnadmin create /www/svndata/oplinux

Configure to allow user rsync access
cd /www/svndata/oplinux/conf

vi svnserve.conf
anon-access=none
auth-access=write
password-db=passwd

Note: There can be no spaces in front of the modified file, otherwise there will be an error when starting the svn server

vi passwd
[ users]
#< User 1> = <Password 1>
#< User 2> = <Password 2>
david=123456

  1. Client connection
    svn co svn://ip/oplinux
    Username password: 123456

===============================================================

  1. Realize the synchronization of SVN and WEB, it can be CO one out, or it can be directly equipped in the warehouse
  1. Set the web server root directory to /www/webroot

  2. checkout an SVN

svn co svn://localhost/oplinux /www/webroot

Modify permissions for WEB users

chown -R apache:apache /www/webroot/oplinux

  1. Create synchronization script

cd /www/svndata/oplinux/hooks/

cp post-commit.tmpl post-commit

Edit post-commit and add the following at the end of the file

export LANG=en_US.UTF-8
SVN=/usr/bin/svn
WEB=/www/webroot/
$SVN update $WEB –username rsync –password rsync
chown -R apache:apache $WEB

Increase script execution permissions

chmod +x post-commit

Recommended Posts

Install svn and configuration through yum under CentOS
centos install mysql through yum
Ubuntu16.04 install SVN and configuration
CentOS7 yum install and start mysql
Install and configure keepalived under CentOS 5.9
Compile and install LAMP under Centos 5.2
CentOS 8 install Git and basic configuration
CentOS7 yum install and start mysql
Java-JDK installation and configuration under CentOS
Install Python3 and ansible under CentOS8
Install and use docker under CentOS 6.8
Install Python3 and Py under CentOS7
Install Mono 3.2 and Jexus 5.4 under CentOS 6.3
Compile and install libmodbus library under CentOS7
Tomcat installation and configuration under CentOS 7 (Tomcat startup)
Installation and configuration of redis under centos7
Install Mono 2.10.8 and Jexus 5.0 under 32- and 64-bit CentOS 6.0
Compile and install nodejs and yum in Centos8
Install Docker CE in yum under CentOS 7
Install centos7 and connect
A brief introduction to yum source configuration and nmcli commands under CentOS8
Install ActiveMQ under Centos7
Install PostgreSQL12 under CentOS7
Install CentOS under VMware
CentOS 7.2 Yum install MySQL 5.6
CentOS 7 installation and configuration graphic tutorials under VMware10
Install mysql under Centos 7
Installation and configuration of rsync server under CentOS 6.5
Install Jenkins under Centos 7
Centos7 YUM install MariaDB 10.0
Install MariaDB under MariaDB Centos7
Install mysql5.1 under CentOS6.5
Installing CentOS 6 and SSH configuration under Windows 8 Hyper-V
Install PHP in yum under CentOS, configure php-fpm service
Environment configuration of JDK, mysql and tomcat under Centos7
Compile and install Lnmp shell script under Linux centos
centos7 install python3 and ipython
Centos mysql installation and configuration
Know Linux and install CentOS
CentOS 7 install Mono and MonoDevelop
Centos7 installation and configuration prometheus
CentOS6.5 install Java 8 and Tomcat8
CentOS 7 installation and configuration PPTP
Centos compile and install Git
Install Oracle11gR2 database under CentOS6.9
CentOS installation and configuration cmake
Install MySQL under Linux (CentOS 7)
Centos7.5 installation and configuration MongoDB4.0.4
CentOS 7 installation and configuration PPTP
Centos6.5 install and configure mongodb
CentOS7 install python3 and pip3
Install Java JDK8 under CentOS6
CentOS7 install OracleJDK and JRE
CentOS6.5 install Java 8 and Tomcat8
CentOS6 install and crack Jira 7
CentOS6.5 install Java 8 and Tomcat8
Centos7 compile and install ntp-4.2.8p11
CentOS 6.9 compile and install python
CentOS6 install and crack confluence
CentOS 6 compile and install python 3
Install MongoDB database under CentOS7