Server version: CentOS 6.5
Version: Apache2.2.32
Download Apache installation package: wget http://mirror.bit.edu.cn/apache/httpd/httpd-2.2.32.tar.gz
Installing Apache-dependent software: Yum install-y zlib-devel
Decompression: TAR-ZXVF httpd-2.2.32.tar.gz
Enter the extracted directory to perform the following actions:
First step:./configure--prefix=/application/apache2.2.32--enable-deflate--enable-expires--enable-headers-- Enable-modules=most--enable-so--with-mpm=worker--enable-rewrite
Part II: Make
Part III: Make install
##### #至此安装结束!!! ##########
Check syntax for errors
650) this.width=650; "src=" http://note.youdao.com/yws/res/943/C911FA6A97B14C2C880083C0A752AE71 "/>
Start the HTTP service
650) this.width=650; "src=" Http://note.youdao.com/yws/res/946/CF06EEFFA7764A51B2AC898C9F15716D "/>
Check if the HTTP service is started
650) this.width=650; "src=" http://note.youdao.com/yws/res/949/3AD6DB271D5D435FA54496C02CF4FA26 "/>
Client Displays LT Works, the table service is OK
650) this.width=650; "src=" http://note.youdao.com/yws/res/952/3619CCDE1E8E41F5BB701C6CA48D51A2 "/>
Apache Configuration file Description:
|--bin # #http用到的命令
|| --ab #服务器性能测试工具
|| --apachectl #控制Apache启动的命令
|| --apxs #是Apache HTTP Tools for compiling and installing extension modules
#后文在编译php软件是就用到了此命令,
#例如:--with-apxs2=/application/apache2.2.32/bin/apxs
|| --htcacheclean commands #清理磁盘 buffers are seldom used
|| --HTPASSWD #建立和更新基本认证的文件 (user name and password are required to open the Web page)
|| --HTTPD #httpd为Apache控制 the command program, APACHECTL is invoked when executing httpd
|| --rotatelogs #Apache自带的日志轮询命令
|--conf #http配置文件的目录
|| --extra #这个是额外的Apache配置文件目录, this directory file we will often access to modify.
#如: httpd-vhosts.conf is in this directory by default
|| --httpd.conf #apache's Live configuration file
|--htdocs The default Site directory when #编译 Apache
|| --index.html #默认的网站首页面
|--logs # Apache error logs and access logs
|| --access_log #这是Apache默认的访问日志
|| --error_log #这是Apache的错误日志, this log can be viewed if Apache errors occur.
|| --httpd.pid #httpd pid file, when the HTTP process starts, it writes the ID of all processes to this file.
|--modules #Apache的模块目录, such as PHP, Memcache and other modules are compiled here.
This article is from the "Zack" blog, please make sure to keep this source http://zhuzhiwei.blog.51cto.com/8446194/1975325
Apache2.2.32 Compiling and installing