How to deploy a Web server on Linux

Source: Internet
Author: User
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

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.