操作系统: Centos7.5
软件版本: subversion-1.10.0 httpd-2.4.33 openssl-1.0.2o apr-1.6.3 apr-iconv-1.2.2 apr-util-1.6.1 scons-3.0.0 serf-1.3.9 sqlite-amalgamation-3160200
#cd /mnt
#cd /usr/local/ apr-1.6.3
#cd /usr/local/apr-iconv-1.2.2
#cd /usr/local/apr-util-1.6.1
#cd /usr/local/scons-3.0.0
#cd /usr/local/serf-1.3.9
#cd /mnt/subversion-1.10.0/sqlite-amalgamation
#cd /usr/local/apache2.4.33
#cd /usr/local/subversion-1.10.0
# cd /usr/local/apache2.4.33/logs
chown –R svn.svn /usr/local/subversion-1.10.0
chown –R svn.svn /usr/local/apache2.4.33
dd if=/dev/zero of=/data/swap bs=1GB count=8
mkswap /data/swap
swapon /data/swap
echo "/data/swap swap swap defaults 0 0" >> /etc/fstab
vi /etc/sysctl.conf
vm.swappiness=16
sysctl –p
# yum -y install openssl-devel zlib-devel expat-devel
#yum -y install apr-devel gcc make
#yum -y install lz4-devel
#yum -y install epel-release perl
#yum -y install utf8proc utf8proc-devel
# yum install -y pcre-devel lua-devel libxml2-devel
# chattr -i /etc/gshadow
# chattr -i /etc/shadow
# chattr -i /etc/group
# chattr -i /etc/passwd
# groupadd svn
# useradd -M -g svn svn
# chattr +i /etc/gshadow
# chattr +i /etc/shadow
# chattr +i /etc/group
# chattr +i /etc/passwd
# tar zxf apr-1.6.3.tar.gz
# tar zxf apr-util-1.6.1.tar.gz
# tar zxf apr-iconv-1.2.2.tar.gz
# tar zxf scons-3.0.0.tar.gz
# unzip serf-1.3.9.zip
# tar zxf subversion-1.10.0.tar.gz
# tar zxf httpd-2.4.33.tar.gz
# cd /mnt/apr-1.6.3
# ./configure --prefix=/usr/local/apr-1.6.3
# make&&make install
# cd /mnt/apr-iconv-1.2.2
# ./configure --prefix=/usr/local/apr-iconv-1.2.2 --with-apr=/usr/local/apr-1.6.3
# make&&make install
# cd /mnt/apr-util-1.6.1
# ./configure --prefix=/usr/local/apr-util-1.6.1 --with-apr=/usr/local/apr-1.6.3 --with-apr-iconv=/usr/local/apr-iconv/bin/apriconv-1.2.2
# make&&make install
# cd /mnt/scons-3.0.0
# python setup.py install --prefix=/usr/local/scons-3.0.0
# unzip /mnt/serf-1.3.9.zip
# cd serf-1.3.9
# /usr/local/scons-3.0.0/bin/scons PREFIX=/usr/local/serf-1.3.9 APR=/usr/local/apr-1.6.3 APU=/usr/local/apr-util-1.6.1
# /usr/local/scons-3.0.0/bin/scons install
# cp -f /usr/local/serf-1.3.9/lib/libserf-1.so* /usr/local/lib/
# ldconfig -v
# echo "/usr/local/serf1.3.9/lib/" >> /etc/ld.so.conf
# echo "/usr/local/apr-util-1.2.2/lib" >> /etc/ld.so.conf
# echo "/usr/local/apr-1.6.3/lib" >> /etc/ld.so.conf
# cp -rf /mnt/apr-util-1.6.1 /mnt/httpd-2.4.33/srclib/apr-util
# cp -rf /mnt/apr-1.6.3 /mnt/httpd-2.4.33/srclib/apr
# cd /mnt/httpd-2.4.33
# ./configure --prefix=/usr/local/apache-2.4.33 --enable-so --enable-ssl --enable-cgi --enable-rewrite --enable-proxy --enable-proxy-ajp=share --enable-dav --enable-dav-fs --with-apr=/usr/local/apr-1.6.3 --with-apr-util=/usr/local/apr-util-1.6.1/ --enable-mods-shared=all --with-zlib --enable-deflate=shared --enable-proxy-fcgi --enable-modules=most --enable-mpms-shared=all --with-mpm=event --with-included-apr
# make&&make install
# echo "export PATH=/usr/local/apache-2.4.33/bin:$PATH" >> /etc/profile
# source /etc/profile
# cd /mnt/subversion-1.10.0
# ./configure --prefix=/usr/local/subversion-1.10.0 --with-apr=/usr/local/apr-1.6.3/ --with-apr-util=/usr/local/apr-util-1.6.1/ --with-apxs=/usr/local/apache/bin/apxs --with-apache-libexecdir --with-serf=/usr/local/serf-1.3.9--with-zlib
# make&&make install
# echo "export PATH=/usr/local/subversion-1.10.0/bin:$PATH" >> /etc/profile
# source /etc/profile
ls /usr/local/apache-2.4.33/modules/|grep svn
# /usr/local/apache/bin/apachectl start
# ps -elf|grep httpd
# mkdir /Repositories
# chown-R svn.svn /Repositories
# svnserve -d -r /Repositories
# ps -elf|grep svnserve