Manually compiling the installation Web service on a Linux server

Source: Internet
Author: User
Tags fully qualified domain name

Experiment




Experimental requirements:

Manually compile the installation WEB service for client access.

Since the downloaded source package is in the win7 system directory, the source package is shared with the linux server through the Samba service:

Win7 folder LAMP is shared and accessed via smbclient on a linux server :

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5A/27/wKioL1T4DfzRKxPjAAHTV0_sWF0612.jpg "title=" 1.jpg " alt= "Wkiol1t4dfzrkxpjaahtv0_swf0612.jpg"/>



Create a directory named lamp , Install the command CIFS by RPM , and implement the shared directory mount:


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5A/2B/wKiom1T4D1HQUo39AAEWBTMZ4to664.jpg "title=" 2.jpg " alt= "Wkiom1t4d1hquo39aaewbtmz4to664.jpg"/>


Mount and enter the directory using the Mount command to view the lamp :

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5A/2B/wKiom1T4D27hvxBAAAE0qxrJOIw186.jpg "title=" 3.jpg " alt= "Wkiom1t4d27hvxbaaae0qxrjoiw186.jpg"/>



650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5A/28/wKioL1T4EJvCvPoaAAE4WpELfss018.jpg "title=" 4.jpg " alt= "Wkiol1t4ejvcvpoaaae4wpelfss018.jpg"/>




Unzip the httpd tar package to the specified directory /opt directory:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5A/2B/wKiom1T4D57yrhj8AACb_1lTsKg127.jpg "title=" 5.jpg " alt= "Wkiom1t4d57yrhj8aacb_1ltskg127.jpg"/>




To reduce the number of concurrent connections, the tar package for Apr is also decompressed to the specified directory /opt :

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5A/2B/wKiom1T4D9TiVVTkAAB0E96OGfM709.jpg "style=" float: none; "title=" 6.jpg "alt=" Wkiom1t4d9tivvtkaab0e96ogfm709.jpg "/>



650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5A/28/wKioL1T4EOrA6U__AACOigQy59c954.jpg "style=" float: none; "title=" 7.jpg "alt=" Wkiol1t4eora6u__aacoigqy59c954.jpg "/>



To httpd use the Apr package, you need to recursively replicate the two packages to the httpd subdirectory srclib , create another two files:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5A/28/wKioL1T4EQbQ00TBAACdbYOfL9s390.jpg "title=" 8.jpg " alt= "Wkiol1t4eqbq00tbaacdbyofl9s390.jpg"/>



using manual compilation requires installation Gcc,gcc-c++,make,pcre-devel and other packages:

Install with yum , before you need to establish a yum repository:


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5A/2B/wKiom1T4EDfwQR7vAACMHlIq7jM170.jpg "title=" 9.jpg " alt= "Wkiom1t4edfwqr7vaacmhliq7jm170.jpg"/>


Install Gcc-c++,make,pcre-devel and other packages using the same method:

Go to the /opt/httpd Directory for manual compilation:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5A/28/wKioL1T4EWmhK4mcAACWv1OO4U8536.jpg "title=" 10.jpg "alt=" Wkiol1t4ewmhk4mcaacwv1oo4u8536.jpg "/>



650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5A/28/wKioL1T4EZ2Cx3QcAACuKsuGDGQ806.jpg "title=" 11.jpg "alt=" Wkiol1t4ez2cx3qcaacuksugdgq806.jpg "/>


compile with make:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5A/28/wKioL1T4EczjL70HAACiW_Q4YNk633.jpg "title=" 12.jpg "alt=" Wkiol1t4eczjl70haaciw_q4ynk633.jpg "/>


After compiling, perform The Make install installation:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5A/2C/wKiom1T4EM6D0hvDAADmsOvfXoY880.jpg "title=" 13.jpg "alt=" Wkiom1t4em6d0hvdaadmsovfxoy880.jpg "/>



Optimize the site installation path for easy start and stop services :

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5A/28/wKioL1T4EhGCpJvfAACEUPZQy28930.jpg "title=" 14.jpg "alt=" Wkiol1t4ehgcpjvfaaceupzqy28930.jpg "/>


Edit the httpd script file, inserting a section of the following markup at the beginning to make it the httpd Service script:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5A/28/wKioL1T4Ei6D9mXrAAEX6EJ8HEk020.jpg "title=" 15.jpg "alt=" Wkiol1t4ei6d9mxraaex6ej8hek020.jpg "/>


Use the chmod command to have the httpd Service Execute permissions:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5A/28/wKioL1T4EkuxxBYbAADPfk1QiHo689.jpg "title=" 16.jpg "alt=" Wkiol1t4ekuxxbybaadpfk1qiho689.jpg "/>



If the service startup item does not have a httpd Service, add it using the chkconfig command and set the terminal 3 and 5 Open in:


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5A/2C/wKiom1T4EVKjBBMgAAEv1fl7qKs399.jpg "title=" 17.jpg "alt=" Wkiom1t4evkjbbmgaaev1fl7qks399.jpg "/>



To edit the httpd configuration file:


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5A/28/wKioL1T4EpLSTDZ_AACpICZzTT4482.jpg "title=" 18.jpg "alt=" Wkiol1t4eplstdz_aacpiczztt4482.jpg "/>



Add a listening port and a native IP address and set a fully qualified domain name:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5A/2C/wKiom1T4Eb7xVV5QAACG-H116AE145.jpg "title=" 19.jpg "alt=" Wkiom1t4eb7xvv5qaacg-h116ae145.jpg "/>



650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5A/28/wKioL1T4EumCzXIoAADoyMe4e-M988.jpg "title=" 20.jpg "alt=" Wkiol1t4eumczxioaadoyme4e-m988.jpg "/>



Start the service and use the client test:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5A/2C/wKiom1T4EeyCpz7gAADZEjbRXnE219.jpg "title=" 21.jpg "alt=" Wkiom1t4eeycpz7gaadzejbrxne219.jpg "/>



Add a webpage and access:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5A/28/wKioL1T4EyPR3FYHAACXh2v1KRw482.jpg "title=" 22.jpg "alt=" Wkiol1t4eypr3fyhaacxh2v1krw482.jpg "/>



650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5A/28/wKioL1T4E0qzQvGyAACYSG-yGjQ660.jpg "title=" 23.jpg "alt=" Wkiol1t4e0qzqvgyaacysg-ygjq660.jpg "/>

Experiment completed

This article from "Joint efforts, common progress ~ ~" blog, please be sure to keep this source http://9067358.blog.51cto.com/9057358/1617672

Manually compiling the installation Web service on a Linux server

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.