centos6.5中 nginx-1.6.3 编译安装

参考来源:http://nginx.org/en/docs/configure.html

nginx-1.6.3 编译安装:
1) ./configure --help 查看编译选项

2) 需要安装一下库: zlib zlib-devel pcre pcre-devel openssl openssl-devel
yum install -y zlib zlib-devel pcre pcre-devel openssl openssl-devel

3)
默认安装路径 /usr/local/nginx

   ./configure \
--sbin-path=/usr/local/nginx/nginx \
--conf-path=/usr/local/nginx/nginx.conf \
--pid-path=/usr/local/nginx/nginx.pid \
--with-http_ssl_module \
  可选项
--with-pcre=../pcre-4.4 \
--with-zlib=../zlib-1.1.3 \

4)make && make install

5) 启动:/usr/local/nginx/nginx

上一篇:CentOS6.5内 MySQL5.7.19编译安装


下一篇:SQLSERVER执行时间统计工具SQLQueryStress