2335867854 发表于 2016-7-18 22:07:58

lnmp1.2请问怎么安装nginx第三方模块?./upgrade.sh nginx失败了

我再upgrade_nginx.sh 里面添加了Nginx_Modules_Arguments="/an/ngx_http_consistent_hash-master/"   然后用/upgrade.sh nginx升级 ,版本号还是输入的1.8.0 ============================check files==================================
nginx-1.8.0.tar.gz
============================check files==================================
Uncompress nginx-1.8.0.tar.gz...
cd nginx-1.8.0...
./configure: error: invalid option "/an/ngx_http_consistent_hash-master/ngx_http_upstream_consistent_hash_module.c"
make: *** No targets specified and no makefile found.Stop.
cp: cannot stat `objs/nginx': No such file or directory
Test nginx configure file...
include/upgrade_nginx.sh: line 56: /usr/local/nginx/sbin/nginx: No such file or directory
upgrade...
make: *** No rule to make target `upgrade'.Stop.

licess 发表于 2016-7-19 08:23:35

明显参数不对,引号中要加完整的参数: --add-module=/path/to/完整第三方模块目录名

2335867854 发表于 2016-7-19 08:48:40

回复 2# 的帖子

非常谢谢军哥,昨晚纠结一晚上
页: [1]
查看完整版本: lnmp1.2请问怎么安装nginx第三方模块?./upgrade.sh nginx失败了