linux上部署web服务器
1. Download the source code from the Apache website.
2. Uninstall the original existing httpd.
3. Mount the CD ready to deploy httpd.
4. Source code compilation installation httpd, unpacking, configuration (--prefix: Specify HTTPD program installation path,--ENABLE-SO: Start dynamic loading module,--enable-rewrite: Enable Web address re-function, for site optimization and directory migration,-- Enable-charset-lite: Startup character Set support,--enble-cgi: Start CGI script support for easy extension).
5. Compile and install.
To install the status during the compilation and installation process, here will wait a few minutes and wait patiently ...
6. Confirm the installation results, if shown, that the installation was successful.
7. Optimize the execution path.
8. Add the HTTPD system service. (You can use the service command to turn on the server after you've added it)
, the first line of the mark needs to be modified, the 23rd line needs to be added, and the third behavior service describes the information. (according to different circumstances to write their own)
, add httpd as a system service, and view the httpd service self-starting state.
9. Configure the HTTPD service, locate the following location, remove the signature #, and then modify it to your domain name.
10. Grammar check if that's right, you can start the httpd service.
How to deploy a Web server on Linux