标签:nginx redhat 问题 www sbin http2 with org shell
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-201908-924
https://github.com/httpwg/http2-spec/wiki/Implementations
https://www.sohu.com/a/335416469_120149005 nginx 1.16.1 稳定版和 nginx 1.17.3 主线版发布 修复安全问题
https://www.nginx.com/blog/nginx-updates-mitigate-august-2019-http-2-vulnerabilities/ Nginx官方的修复建议
http://nginx.org/en/CHANGES
https://blog.csdn.net/join_gonner/article/details/109239053 升级nginx的参考博客(仅作思路参考,但不推荐按照此博客的做,该博客存在非常多问题,例如: 直接执行 ./configure)
Nginx官方建议:
http://nginx.org/en/CHANGES
https://www.nginx.com/blog/nginx-updates-mitigate-august-2019-http-2-vulnerabilities/
NGINX 1.16.1 (stable)
NGINX 1.17.3 (mainline)
NGINX Plus R18 P1
# cat /etc/redhat-release
CentOS release 6.8 (Final)
# ps -ef | grep -i nginx
root 31044 1 0 Jun04 ? 00:00:00 nginx: master process /usr/local/nginx/sbin/nginx
root 31045 31044 0 Jun04 ? 00:00:02 nginx: worker process
root 714299 714269 0 12:33 pts/4 00:00:00 grep -i nginx
# ll /proc/31044 | grep -i CWD
lrwxrwxrwx 1 root root 0 6月 15 16:52 cwd -> /usr/local/nginx/sbin
# /usr/local/nginx/sbin/nginx -v
nginx version: nginx/1.15.12
cp -r /usr/local/nginx /usr/local/nginx.202106161252.bak
mv /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.202106161252.old.bak
下载地址
http://www.nginx.org/download/nginx-1.17.5.tar.gz
上传安装包到如下指定目录
mkdir -p /opt/SDCUpgrades/20210615/servers/nginx
/opt/SDCUpgrades/20210615/servers/nginx/nginx-1.17.5.tar.gz
解压
tar -xvf /opt/SDCUpgrades/20210615/servers/nginx/nginx-1.17.5.tar.gz -C /opt/SDCUpgrades/20210615/servers/nginx/
cd /opt/SDCUpgrades/20210615/servers/nginx/nginx-1.17.5
./configure --prefix=/usr/local/nginx --with-http_stub_status_module
【高危警告】 configure的参数必须与 .../sbin/nginx -V中显示的参数一模一样,切记!!
--conf-path=/usr/local/nginx/conf : 此时不会对 /usr/local/nginx 产生 任何影响;尚不会在 /usr/local/nginx 目录下产生任何文件
/usr/local/sbin/nginx -s stop
cd /opt/SDCUpgrades/20210615/servers/nginx/nginx-1.17.5
make
cp /opt/SDCUpgrades/20210615/servers/nginx/nginx-1.17.5/objs/nginx /usr/local/nginx/sbin/
/usr/local/nginx/sbin/nginx -t
/usr/local/nginx/sbin/nginx
显示最新编译的版本信息即更新成功
/usr/local/nginx/sbin/nginx -V
[Nginx/Linux]Nginx从1.15.12平滑升级到1.17.5
标签:nginx redhat 问题 www sbin http2 with org shell
原文地址:https://www.cnblogs.com/johnnyzen/p/14889047.html