Install the Apach service in Linux

Source: Internet
Author: User

Recently, due to work requirements, to compile some code Under SuSE, you need to use the aparch service. You can check the installation method on the Internet and put it here to avoid forgetting it later. Haha...

Method: (the following content is reprinted)

 

1: system installation. I will not talk about it here. There are many online systems, which are also very simple. By the way, I use RedHat 9;
2: In the graphical interface to download the Apache installation package, I am under the httpd-2.2.9.tar.gz source code installation package, the address is the http://httpd.apache.org/download.cgi
3: Save the downloaded file to the/home/RedHat/src directory. RedHat is the folder where normal users are located. You can also create other folders to save the downloaded file.
Httpd-2.2.9.tar.gz with: gzip-d
Tar xvf httpd-2.2.9.tar
Unzip the installation package, and a folder for the httpd-2.2.9 appears to enter the folder.
4: You can see the configure folder under the httpd-2.2.9 folder, then use:./configure -- prefix =/usr/local/Apache -- enable-so to set the installation

Directory and parameter settings. The so command is used to extract the Apache core module supported by DSO.
5: Use make and make install to compile and install Apache.
6:/usr/local/Apache/bin/apachectl start. This command is used to enable Apache.

 

This method is very useful. Haha ..

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.