zabbix3.0.4 部署之五 (LNMP > nginx1.9.9)

1

wget http://nginx.org/download/nginx-1.9.9.tar.gz

cd /opt/pcre-8.35

  autoreconf -ivf

Installing shared extensions:     /usr/local/php/lib/php/extensions/no-debug-zts-20121212/

注意路径:

将  pcre-8.35  zlib-1.2.8  openssl-1.0.1g  一定要压缩包拷贝至 /usr/local/src/   解压

例:cp -Ra /opt/soft/zlib-1.2.8 /usr/local/src/.

cd nginx-1.7.0
./configure 
--user=www
--group=www
--prefix=/usr/local/nginx
--with-http_stub_status_module
--with-http_ssl_module
--with-http_gzip_static_module
--with-pcre=/opt/pcre-8.41
--with-zlib=/opt/zlib-1.2.11
--with-openssl=/opt/openssl-1.0.2l --add-module=/usr/local/src/ngx_pagespeed-1.8.31.2-beta --with-google_perftools_module

make

make install

ln -s /usr/local/lib/* /lib64

原文地址:https://www.cnblogs.com/sunpear/p/5816319.html