Using the system for CentOS6.5
HTTPD Service for 2.2.17
Packages can be downloaded via this link: http://httpd.apache.org/download.cgi
1. Verify that the Apache HTTPD service package is currently downloaded
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/87/56/wKioL1feAGuz9iLvAAAjkrJHT5E080.png "style=" float: none; "title=" 1.png "alt=" Wkiol1feaguz9ilvaaajkrjht5e080.png "/>
2. Install the HTTPD service required by the dependency package openssl-devel, and extract the httpd compression package, specify the installation directory customization function to compile and install
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/87/56/wKioL1feAGuyZ3UCAACRIAL0NfA801.png "style=" float: none; "title=" 2.png "alt=" Wkiol1feaguyz3ucaacrial0nfa801.png "/>
3. Confirm that the HTTPD service has been successfully installed
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/87/59/wKiom1feAGyhacSZAABQm81FQcA415.png "style=" float: none; "title=" 3.png "alt=" Wkiom1feagyhacszaabqm81fqca415.png "/>
4. Optimize the command path to link, copy the configuration file
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/87/56/wKioL1feAGzDvDffAAB5Q72K0zk787.png "style=" float: none; "title=" 4.png "alt=" Wkiol1feagzdvdffaab5q72k0zk787.png "/>
5. Modify the configuration file, the level of service run, and return after service change "httpd is Stop/start/restart ok! "Confirm Service Status
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/87/59/wKiom1feAG2Sg4StAAAldV3agqg275.png "style=" float: none; "title=" 5.png "alt=" Wkiom1feag2sg4staaaldv3agqg275.png "/>
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/87/56/wKioL1feAG3yU9H6AABN0fj9VVQ905.png "style=" float: none; "title=" 6.png "alt=" Wkiol1feag3yu9h6aabn0fj9vvq905.png "/>
6. See if the configuration file has execute permission and must have Execute permission service to start
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/87/59/wKiom1feAG3Bh_1UAACJjS6oRGE026.png "style=" float: none; "title=" 7.png "alt=" Wkiom1feag3bh_1uaacjjs6orge026.png "/>
7. Modify the configuration file change the admin mailbox and domain name
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/87/59/wKiom1feAG6CyRpSAAAhfliBzMM502.png "style=" float: none; "title=" 8.png "alt=" Wkiom1feag6cyrpsaaahflibzmm502.png "/>
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/87/56/wKioL1feAG-Tz4DqAAD0IxMrJvQ063.png "style=" float: none; "title=" 9.png "alt=" Wkiol1feag-tz4dqaad0ixmrjvq063.png "/>
8. Start the service and view the listening port number to confirm that the service is started
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/87/56/wKioL1feAHCzCbBiAAGcpmZiNKg370.png "style=" float: none; "title=" 10.png "alt=" Wkiol1feahczcbbiaagcpmzinkg370.png "/>
9. Use browser access to confirm that the service is ready to work
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/87/56/wKioL1feAHDBmfH0AAAaL0mvd7Q805.png "style=" float: none; "title=" 11.png "alt=" Wkiol1feahdbmfh0aaaal0mvd7q805.png "/>
This article is from the "Ukkun" blog, make sure to keep this source http://xiaoayu.blog.51cto.com/12001978/1853520
Build Apache service on Linux platform