?> WDlinux官方论坛 - Powered by Discuz! Board Board logo

标题: [教程] wdcp3升级nginx版本的正确姿势 [打印本页]

作者: wbband    时间: 2018-1-6 10:34     标题: wdcp3升级nginx版本的正确姿势

1、下载sh文件
wget http://down.wdlinux.cn/in/nginx_up.sh

2、运行升级文件
sh nginx_up.sh 版本号

注意:"sh nginx_up.sh 版本号"
若不带版本号默认升级到1.2.9版本,如想升级到其它的版本, 可在脚本后加上版本号,如sh nginx_up.sh 1.12.2本人就升级到了1.12.2,因为之前的几个版本有内存泄露问题。
微信截图_20180106101435.png

图片附件: 微信截图_20180106101435.png (2018-1-6 10:33, 2.1 KB) / 下载次数 6882
http://www.wdlinux.cn/bbs/attachment.php?aid=8298&k=3c146bf1ef82ceb72a3dadbef3887126&t=1713584182&sid=iDxUuu


作者: chenxyhz    时间: 2018-1-23 22:10

兄弟```N+A模式下能用这种方法不??
作者: xahalal    时间: 2018-4-16 16:10

谢谢楼主热心提供的教程,2018年4月16日本人根据教程升级成功!
作者: jiyanfeng    时间: 2018-6-14 11:34

升级提示:

cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I
src/event -I src/event/modules -I src/os/unix -I objs \                -o objs/src/core/ngx_parse.o \
                src/core/ngx_parse.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I
src/event -I src/event/modules -I src/os/unix -I objs \                -o objs/src/core/ngx_parse_time.o \
                src/core/ngx_parse_time.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I
src/event -I src/event/modules -I src/os/unix -I objs \                -o objs/src/core/ngx_inet.o \
                src/core/ngx_inet.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I
src/event -I src/event/modules -I src/os/unix -I objs \                -o objs/src/core/ngx_file.o \
                src/core/ngx_file.c
src/core/ngx_file.c: 在函数‘ngx_walk_tree’中:
src/core/ngx_file.c:1003: 错误:‘struct dirent’没有名为‘d_namlen’的成员
make[1]: *** [objs/src/core/ngx_file.o] 错误 1
make[1]: Leaving directory `/tmp/nginx-1.12.2'
make: *** [build] 错误 2
make err




欢迎光临 WDlinux官方论坛 (http://www.wdlinux.cn/bbs/) Powered by Discuz! 7.2