VPS侦探论坛

 找回密码
 注册
查看: 3936|回复: 2

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

[复制链接]
发表于 2016-7-18 22:07:58 | 显示全部楼层 |阅读模式

我再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 [found]
============================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.
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2016-7-19 08:23:35 | 显示全部楼层


明显参数不对,引号中要加完整的参数: --add-module=/path/to/完整第三方模块目录名
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2016-7-19 08:48:40 | 显示全部楼层

回复 2# 的帖子


非常谢谢军哥,昨晚纠结一晚上
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-29 07:30 , Processed in 0.025632 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表