centos6.4下编译安装LNMP环境
自PHP-5.3.3起,PHP-FPM加入到了PHP核心,编译时加上--enable-fpm即可提供支持。 PHP-FPM以守护进程在后台运行,Nginx响应请求后,自行处理静态请求,PHP请求则经过fastcgi_pass交由PHP-FPM处理,处理完毕后返回。 Nginx和PHP-FPM的组合,是一种稳定、高效的PHP运行方式,效率要比传统的Apache和mod_php高出不少。 //系统说明 1.centos6.4 IP:10.10.54.157 2.软件版本:nginx1.4.5+mysql5.5+php5.4 //编译安装nginx1.4.5 1.下载nginx1.4.5 shell> wget 2.解压nginx.1.4.5 shell> tar xvf nginx-1.4.5.tar.gz 3.编译安装 shell> yum -y install zlib-devel pcre-devel openssl-devel #nginx依赖包 shell> ./configure --prefix=/usr/local/nginx --with-pcre --with-http_stub_status_module --user=apache --group=apache --with-http_ssl_module --with-http_gzip_static