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

 

posted on 2016-08-28 23:09  sunpear  阅读(178)  评论(0编辑  收藏  举报