赞
踩
linux环境准备:
yum -y install gcc zlib zlib-devel pcre-devel openssl openssl-devel
yum install wget
官网下载1.24.0 (http://nginx.org/en/download.html)
下载stable version
拷贝到服务器解压
tar -xvf nginx-1.24.0.tar
mkdir /usr/local/nginx
cd /usr/local/nginx-1.24.0
./configure --prefix=/usr/local/nginx
make && make install
查看版本
[root@tomcat1 sbin]# ./nginx -v
nginx version: nginx/1.24.0
安装成功
安装支持ssl
./configure --with-http_ssl_module
make
cp objs/nginx /usr/local/nginx/sbin/nginx
nginx -V
[root@tomcat1 nginx]# ./sbin/nginx -V
nginx version: nginx/1.16.0
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-23) (GCC)
built with OpenSSL 1.0.1e-fips 11 Feb 2013
TLS SNI support enabled
configure arguments: --with-http_ssl_module
升级成功
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。