Installing Apache under Linux

Source: Internet
Author: User

Installing Apache under CentOS6.5

1. Enter the/USR/LOCAL/SRC directory

[[Email protected] ~] #cd/usr/local/src/

[[email protected] src] #wget http://mirrors.cnnic.cn/apache/httpd/httpd-2.2.31.tar.gz


2. Decompression

[Email protected] src]# tar zxvf httpd-2.2.31.tar.gz


3. Compilation parameters

[Email protected] src]# CD httpd-2.2.31

[email protected] httpd-2.2.31]# Yum install-y zlib-devel #先提前安装好一些库文件

[Email protected] httpd-2.2.31]#/configure \

>--prefix=/usr/local/apache2 \

>--WITH-INCLUDED-APR \

>--enable-so \

>--enable-deflate=shared \

>--enable-expires=shared \

>--enable-rewrite=shared \

>--with-pcre


# # to explain:--prefix is specified where to install;--enable-so means enable dso;--enable-deflate=
Shared means that the deflate is compiled in the same way, and the following parameters are the same.


4. Compiling

[[email protected] httpd-2.2.31] #make


5. Installation

[[email protected] httpd-2.2.31] #make Install


6. Complete Installation

[[email protected] httpd-2.2.31]# echo $?

0


This article is from the "10694514" blog, please be sure to keep this source http://10704514.blog.51cto.com/10694514/1711624

Installing Apache under 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.