容器技术交流

 找回密码
 立即注册
查看: 3444|回复: 1

为什么用官方介绍的方法升级nginx不成功?

[复制链接]
发表于 2013-10-11 15:13:07 | 显示全部楼层 |阅读模式
升级nginx:
1. 下载最新版的nginx(注意以前的软件包的后缀名,如tar.gz);
2. 将nginx包传至LuNamp/soft/目录下;
3. 修改LuNamp/code/nginx/nginx.sh文件,将改本号改掉
4. 切换目录:cd LuNamp/code/nginx/
5. 执行安装./nginx.sh
6. 升级完成后,去LuManager编辑任何一个主机,然后重启Nginx便可。
-------------------------------------------------------------------------
升级最后显示的代码如下:
  1. make -f objs/Makefile
  2. make[1]: Entering y `/root/LuNamp/soft/nginx-1.4.3'
  3. cd ../pcre-8.10 \
  4.         && if [ -f Makefile ]; then make distclean; fi \
  5.         && CC="cc" CFLAGS="-O2 -fomit-frame-pointer -pipe " \
  6.         ./configure --disable-shared
  7. /bin/sh: line 0: cd: ../pcre-8.10: No such file or y
  8. make[1]: *** [../pcre-8.10/Makefile] Error 1
  9. make[1]: Leaving y `/root/LuNamp/soft/nginx-1.4.3'
  10. make: *** [build] Error 2
  11. make -f objs/Makefile install
  12. make[1]: Entering y `/root/LuNamp/soft/nginx-1.4.3'
  13. cd ../pcre-8.10 \
  14.         && if [ -f Makefile ]; then make distclean; fi \
  15.         && CC="cc" CFLAGS="-O2 -fomit-frame-pointer -pipe " \
  16.         ./configure --disable-shared
  17. /bin/sh: line 0: cd: ../pcre-8.10: No such file or y
  18. make[1]: *** [../pcre-8.10/Makefile] Error 1
  19. make[1]: Leaving y `/root/LuNamp/soft/nginx-1.4.3'
  20. make: *** [install] Error 2
  21. setenforce: SELinux is disabled
复制代码

请问如何解决呢?

发表于 2015-1-30 22:27:29 | 显示全部楼层
下载 、LuNamp_last.tar.gz
解压后得到 pcre-8.10 目录传到LuNamp/soft/目录下 设置为 775权限后再执行试试
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Archiver|URLOS ( 粤ICP备18087780号 )

GMT+8, 2024-4-26 20:44 , Processed in 0.030541 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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