1、安装svn
apt install subversion # 创建仓库 cd /opt mkdir svn cd svn mkdir repository svnadmin create /opt/svn/repository /opt/svn/repository chmod -R 777 db
剩下的配置看这儿 https://blog.csdn.net/weixin_42171170/article/details/106957520
2、安装
2.1 安装php(默认7.4)
apt-get -y install php php-fpm php-mysql php-curl php-json php-mbstring php-xml php-intl php-gd php-soap php-gmp php-sqlite3 php-xmlrpc php-bz2 php-cgi php-snmp php-zip
2.2 安装Apache
sudo apt install apache2 sudo apt-get install libapache2-mod-php apt-get install libapache2-mod-svn sudo a2enmod dav_svn
2.3 配置svnadmin
安装svnadmin
cd /opt/svn/repo/hooks mv post-commit.tmpl post-commit