Using Apache to build SVN service under Linux (1)


     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 laughing out loud.

 

     <1>. Download the required dependency packages: cry
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: hesitate
 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: embarrassment
 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/laughing out loud

         [Access the above link through a browser on the Windows platform: 192.168.127.11 is the IP address of the Linux system]

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326679915&siteId=291194637