farnan 发表于 2021-4-2 15:40:28

LNMP1.7输入./upgrade_nginx.sh升级nginx没反应

本帖最后由 farnan 于 2021-4-2 15:41 编辑

给系统添加pagespeed_nginx模块需要重新升级编译nginx输入./upgrade_nginx.sh,提示没权限,chmod +x upgrade_nginx.sh提权后输入升级程序没反系统是centos 8 64位,昨天升级了一下系统



farnan 发表于 2021-4-2 15:50:33

解决,输入
用错命令了
cd ~/lnmp1.7
./upgrade.sh nginx

farnan 发表于 2021-4-2 17:49:25

farnan 发表于 2021-4-2 15:50
解决,输入
用错命令了升级失败
configuring additional modules
adding module in /opt/incubator-pagespeed-ngx-1.13.35.2-stable
./configure: error: no /opt/incubator-pagespeed-ngx-1.13.35.2-stable/config was found
make: *** No rule to make target 'build', needed by 'default'.Stop.
make: *** No rule to make target 'build', needed by 'default'.Stop.
cp: cannot stat 'objs/nginx': No such file or directory
Test nginx configure file...
include/upgrade_nginx.sh: line 73: /usr/local/nginx/sbin/nginx: No such file or directory
upgrade...
make: *** No rule to make target 'upgrade'.Stop.
Checking ...
Error: Nginx upgrade failed.

licess 发表于 2021-4-3 10:41:53

farnan 发表于 2021-4-2 17:49
升级失败

你这 /opt/incubator-pagespeed-ngx-1.13.35.2-stable 模块的源码没下载好吧?编译时都提示没找到

farnan 发表于 2021-4-3 15:40:47

licess 发表于 2021-4-3 10:41
你这 /opt/incubator-pagespeed-ngx-1.13.35.2-stable 模块的源码没下载好吧?编译时都提示没找到 ...

感谢军哥指导,我下载了,放在了根目录下,没认真看代码(:现在已经升级成功了:lol

蛋蛋的蛋 发表于 2021-4-4 22:32:37

licess 发表于 2021-4-3 10:41
你这 /opt/incubator-pagespeed-ngx-1.13.35.2-stable 模块的源码没下载好吧?编译时都提示没找到 ...

incubator-pagespeed-ngx是什么神仙模块,干嘛的:lol
页: [1]
查看完整版本: LNMP1.7输入./upgrade_nginx.sh升级nginx没反应