Kill lui lei dog---linux no:42 linux under compile Apache

Source: Internet
Author: User

We go to Apache official website to download him, address: http://httpd.apache.org/

The right mouse button to copy his address, and then to the Linux server to do wget to download it, as follows:

This is done as follows:

Then unzip her:

Then go to the newly extracted directory:

Then compile it for her:

./configure--PREFIX=/USR/LOCAL/HTTPD

OK, compile a little problem all the wood takes place ....

then compile directly.

Make && make install

Then make the install under execute:

This is done as follows:

Then we go into the httpd directory and see.

Then we go to the bin directory to see:

In here we can see that there is a file called Apachectl, and we start him up a bit.

But at this time he reported a mistake:

Wood thing, we go to his config directory:/usr/local/httpd/conf, then go to modify the file under Httpd.conf

Enter inside directly press/then enter/ServerName, (press small N to move to the next) as shown below:

Let him modify the following as follows:

Then come to the/usr/local/httpd/bin directory and let him reboot.

So that he can start up, as shown below:

Kill lui lei dog---linux no:42 linux under compile Apache

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.