提问三步曲: 提问先看教程/FAQ索引(wdcp,wdcp_v3,一键包)及搜索,会让你更快解决问题
1 提供详细,如系统版本,wdcp版本,软件版本等及错误的详细信息,贴上论坛或截图发论坛
2 做过哪些操作或改动设置等
温馨提示:信息不详,很可能会没人理你!论坛有教程说明的,也可能没人理!因为,你懂的
本帖最后由 wangyouworld 于 2018-8-7 11:14 编辑
升级的前提:
确定 WDCP Nginx编译参数,之后,下载新版,重新编译即可。
==================================
【升级Nginx 1.14.0】
1、查询 WDCP 编译参数
/www/wdlinux/nginx/sbin/nginx -V
示例:
--user=www --group=www --prefix=/www/wdlinux/nginx-1.8.1 --with-http_stub_status_module --with-ipv6 --with-http_gzip_static_module --with-http_realip_module --with-http_ssl_module
// openssl 不生效 需要指定 openssl 源码目录
// --with-openssl=/tmp/openssl-1.0.2o/
2、下载 Nginx 1.14.0
cd /tmp
wget https://nginx.org/download/nginx-1.14.0.tar.gz
tar zxf nginx-1.14.0.tar.gz
cd nginx-1.14.0
# 留意,你需要移除 --with-ipv6 选项,因为 在 1.11.5 后将自动配置 IPV6
示例:
./configure --user=www --group=www --prefix=/www/wdlinux/nginx-1.8.1 --with-http_stub_status_module --with-http_gzip_static_module --with-http_realip_module --with-http_ssl_module --with-openssl=/tmp/openssl-1.0.2o/ --with-http_v2_module
make
make install
service nginxd restart |