编译安装 nginx 1.1.10 

前天nginx刚刚发布了1.1.x 开发分支的最新版本1.1.9,看了长长的Changes 列表,我顿时有了一种更新的冲动,还没动手呢,今天就又紧急发布了bugfix版 1.1.10.

故而,果断跟进。

下载源码包(http://nginx.org/download/nginx-1.1.10.tar.gz), 解压,进入目录:
我的configure:
[root@PowerPC nginx-1.1.10]# ./configure \
> --prefix=/usr/local/nginx \
> --sbin-path=/usr/local/sbin/nginx \
> --conf-path=/etc/sysconfig/nginx/nginx.conf \
> --error-log-path=/var/log/nginx/error.log \
> --pid-path=/var/run/nginx.pid \
> --lock-path=/var/run/nginx.lock \
> --user=http \
> --group=web \
> --with-select_module \
> --with-poll_module \
> --with-http_dav_module \
> --with-http_flv_module \
> --with-http_mp4_module \
> --with-http_gzip_static_module \
> --without-http_fastcgi_module \
> --without-http_uwsgi_module \
> --without-http_scgi_module \
> --http-log-path=/var/log/nginx/access.log \
> --http-client-body-temp-path=/tmp/nginx/request \
> --http-proxy-temp-path=/tmp/nginx/proxy \
> --without-mail_pop3_module \
> --without-mail_imap_module \
> --without-mail_smtp_module \
> --with-pcre \
>

检查依赖,程序给出编译概况:

Configuration summary
+ using system PCRE library
+ OpenSSL library is not used
+ md5: using system crypto library
+ sha1: using system crypto library
+ using system zlib library

nginx path prefix: "/usr/local/nginx"
nginx binary file: "/usr/local/sbin/nginx"
nginx configuration prefix: "/etc/sysconfig/nginx"
nginx configuration file: "/etc/sysconfig/nginx/nginx.conf"
nginx pid file: "/var/run/nginx.pid"
nginx error log file: "/var/log/nginx/error.log"
nginx http access log file: "/var/log/nginx/access.log"
nginx http client request body temporary files: "/tmp/nginx/request"
nginx http proxy temporary files: "/tmp/nginx/proxy"

确认没问题。开始编译和安装.make && make install.
安装完成后,恢复下配置文件 nginx.conf.

查看下版本:
[root@PowerPC nginx-1.1.10]# nginx -v
nginx version: nginx/1.1.10

没问题,升级成功。

评论