In companies, SVN services are built under Linux systems in most cases, and Apache can usually be used as a web server. Compared with the SVN service built on the Windows platform, using the Apache server to build the SVN service on Linux has better security and ease of use .
<1>. Download the required dependency packages:
1. Apache installation package: httpd-2.2.25.tar.gz
2. svn installation development package: subversion-1.7.13.tar.gz
3. svn dependent installation package :
sqlite-amalgamation-3.6.18.tar.gz
apr-1.4.8.tar.gz
apr-util-1.5.2.tar.gz
neon-0.30.0.tar.gz
<2>. Preparations:
1. Switch to the root user: su - root
2. Select the installation location of the program as /usr/local, which needs to be authorized for ordinary users: chmod 777 /usr/local
3. Add a new user:
@ add User: useradd nick
@ Add group: groupadd excelsoft
@ Add user to group: usermod -g excelsoft nick
@ Set user password: passwd nick
4. Use ftp tool to upload all installation packages:
use account nick to upload all tar.gz installation packages Go to /soft/ below [need to create /soft/ directory]
<3>. Install Apache server:
1. Switch to nick account: su - nick
2. Switch path: cd /soft/
3. Unzip the Apache installation package: tar -zvxf httpd-2.2.25.tar.gz
4. Enter Program directory: cd httpd-2.2.25
5. View configuration help: ./configure --help
6. Configure: [will be installed under /usr/local/apache path: no need to create apache directory beforehand]
./configure - -prefix=/usr/local/apache --enable-dav --enable-so --enable-rewrite --enable-cgi --enable-deflate
--enable-mods-shared=all --with-mpm=worker
7. Compile and install
make
make install
8. Configure IP and listen: vi /usr/local/apache/conf/httpd.conf
Listen 8088
ServerName 127.0.0.1:8088
9. Start and close Apache:
/usr/local/apache/bin /apachectl -k start [start]
/usr/local/apache/bin/apachectl -k restart [restart]
/usr/local/apache/bin/apachectl -k stop [shutdown]
10. Test if the installation was successful: http://192.168.127.11:8088/
[Access the above link through a browser on the Windows platform: 192.168.127.11 is the IP address of the Linux system]