VPS侦探论坛

 找回密码
 注册
查看: 4246|回复: 3

升级Nginx 1.11.6失败 附错误日志 军哥帮看看

[复制链接]
发表于 2016-12-3 17:37:06 | 显示全部楼层 |阅读模式

  1. Last login: Sat Dec  3 17:18:26 2016 from 116.1.96.236

  2. Welcome to aliyun Elastic Compute Service!

  3. [root@iZbp1ah56mmzv9abvyfp0zZ ~]# ./upgrade.sh nginx
  4. -bash: ./upgrade.sh: No such file or directory
  5. [root@iZbp1ah56mmzv9abvyfp0zZ ~]# cd /root/
  6. [root@iZbp1ah56mmzv9abvyfp0zZ ~]# ./upgrade.sh nginx
  7. -bash: ./upgrade.sh: No such file or directory
  8. [root@iZbp1ah56mmzv9abvyfp0zZ ~]# cd /root/lnmp1.3-full/
  9. [root@iZbp1ah56mmzv9abvyfp0zZ lnmp1.3-full]# ./upgrade.sh nginx
  10. lnmp.conf: line 1:

  11. 为什么会提示这个呢:include/upgrade_nginx.sh: line 58: /usr/local/nginx/sbin/nginx: No such file or directory

  12. \r': command not found
  13. lnmp.conf: line 3:

  14. 为什么会提示这个呢:include/upgrade_nginx.sh: line 58: /usr/local/nginx/sbin/nginx: No such file or directory

  15. \r': command not found
  16. lnmp.conf: line 6:

  17. 为什么会提示这个呢:include/upgrade_nginx.sh: line 58: /usr/local/nginx/sbin/nginx: No such file or directory

  18. \r': command not found
  19. +-----------------------------------------------------------------------+
  20. |            Upgrade script for LNMP V1.3, Written by Licess            |
  21. +-----------------------------------------------------------------------+
  22. |     A tool to upgrade Nginx,MySQL/Mariadb,PHP for LNMP/LNMPA/LAMP     |
  23. +-----------------------------------------------------------------------+
  24. |          For more information please visit http://www.lnmp.org        |
  25. +-----------------------------------------------------------------------+
  26. Current Nginx Version:1.10.0
  27. You can get version number from http://nginx.org/en/download.html
  28. Please enter nginx version you want, (example: 1.7.8): 1.11.6
  29. +---------------------------------------------------------+
  30. |    You will upgrade nginx version to 1.11.6
  31. +---------------------------------------------------------+

  32. Press any key to start...or Press Ctrl+c to cancel

  33. ============================check files==================================
  34. Notice: nginx-1.11.6.tar.gz not found!!!download now......
  35. --2016-12-03 17:27:24--  http://nginx.org/download/nginx-1.11.6.tar.gz
  36. Resolving nginx.org (nginx.org)... failed: Temporary failure in name resolution.
  37. wget: unable to resolve host address 鈥榥ginx.org鈥
  38. You enter Nginx Version was:1.11.6
  39. Error! You entered a wrong version number, please check!
  40. [root@iZbp1ah56mmzv9abvyfp0zZ lnmp1.3-full]# ./upgrade.sh nginx
  41. lnmp.conf: line 1:

  42. 为什么会提示这个呢:include/upgrade_nginx.sh: line 58: /usr/local/nginx/sbin/nginx: No such file or directory

  43. \r': command not found
  44. lnmp.conf: line 3:

  45. 为什么会提示这个呢:include/upgrade_nginx.sh: line 58: /usr/local/nginx/sbin/nginx: No such file or directory

  46. \r': command not found
  47. lnmp.conf: line 6:

  48. 为什么会提示这个呢:include/upgrade_nginx.sh: line 58: /usr/local/nginx/sbin/nginx: No such file or directory

  49. \r': command not found
  50. +-----------------------------------------------------------------------+
  51. |            Upgrade script for LNMP V1.3, Written by Licess            |
  52. +-----------------------------------------------------------------------+
  53. |     A tool to upgrade Nginx,MySQL/Mariadb,PHP for LNMP/LNMPA/LAMP     |
  54. +-----------------------------------------------------------------------+
  55. |          For more information please visit http://www.lnmp.org        |
  56. +-----------------------------------------------------------------------+
  57. Current Nginx Version:1.10.0
  58. You can get version number from http://nginx.org/en/download.html
  59. Please enter nginx version you want, (example: 1.7.8): 1.11.6
  60. +---------------------------------------------------------+
  61. |    You will upgrade nginx version to 1.11.6
  62. +---------------------------------------------------------+

  63. Press any key to start...or Press Ctrl+c to cancel

  64. ============================check files==================================
  65. Notice: nginx-1.11.6.tar.gz not found!!!download now......
  66. --2016-12-03 17:28:39--  http://nginx.org/download/nginx-1.11.6.tar.gz
  67. Resolving nginx.org (nginx.org)... 206.251.255.63, 95.211.80.227, 2001:1af8:4060:a004:21::e3, ...
  68. Connecting to nginx.org (nginx.org)|206.251.255.63|:80... connected.
  69. HTTP request sent, awaiting response... 200 OK
  70. Length: 960331 (938K) [application/octet-stream]
  71. Saving to: 鈥榥ginx-1.11.6.tar.gz鈥

  72. 100%[======================================>] 960,331     8.83KB/s   in 2m 11s

  73. 2016-12-03 17:30:53 (7.14 KB/s) - 鈥榥ginx-1.11.6.tar.gz鈥saved [960331/960331]

  74. Download nginx-1.11.6.tar.gz successfully!
  75. ============================check files==================================
  76. Uncompress nginx-1.11.6.tar.gz...
  77. cd nginx-1.11.6...
  78. checking for OS
  79. + Linux 3.10.0-327.22.2.el7.x86_64 x86_64
  80. checking for C compiler ... found
  81. + using GNU C compiler
  82. + gcc version: 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC)
  83. checking for gcc -pipe switch ... found
  84. checking for -Wl,-E switch ... found
  85. checking for gcc builtin atomic operations ... found
  86. checking for C99 variadic macros ... found
  87. checking for gcc variadic macros ... found
  88. checking for gcc builtin 64 bit byteswap ... found
  89. checking for unistd.h ... found
  90. checking for inttypes.h ... found
  91. checking for limits.h ... found
  92. checking for sys/filio.h ... not found
  93. checking for sys/param.h ... found
  94. checking for sys/mount.h ... found
  95. checking for sys/statvfs.h ... found
  96. checking for crypt.h ... found
  97. checking for Linux specific features
  98. checking for epoll ... found
  99. checking for EPOLLRDHUP ... found
  100. checking for EPOLLEXCLUSIVE ... not found
  101. checking for O_PATH ... found
  102. checking for sendfile() ... found
  103. checking for sendfile64() ... found
  104. checking for sys/prctl.h ... found
  105. checking for prctl(PR_SET_DUMPABLE) ... found
  106. checking for sched_setaffinity() ... found
  107. checking for crypt_r() ... found
  108. checking for sys/vfs.h ... found
  109. checking for poll() ... found
  110. checking for /dev/poll ... not found
  111. checking for kqueue ... not found
  112. checking for crypt() ... not found
  113. checking for crypt() in libcrypt ... found
  114. checking for F_READAHEAD ... not found
  115. checking for posix_fadvise() ... found
  116. checking for O_DIRECT ... found
  117. checking for F_NOCACHE ... not found
  118. checking for directio() ... not found
  119. checking for statfs() ... found
  120. checking for statvfs() ... found
  121. checking for dlopen() ... not found
  122. checking for dlopen() in libdl ... found
  123. checking for sched_yield() ... found
  124. checking for SO_SETFIB ... not found
  125. checking for SO_REUSEPORT ... found
  126. checking for SO_ACCEPTFILTER ... not found
  127. checking for SO_BINDANY ... not found
  128. checking for IP_BIND_ADDRESS_NO_PORT ... not found
  129. checking for IP_TRANSPARENT ... found
  130. checking for IP_BINDANY ... not found
  131. checking for IP_RECVDSTADDR ... not found
  132. checking for IP_PKTINFO ... found
  133. checking for IPV6_RECVPKTINFO ... found
  134. checking for TCP_DEFER_ACCEPT ... found
  135. checking for TCP_KEEPIDLE ... found
  136. checking for TCP_FASTOPEN ... found
  137. checking for TCP_INFO ... found
  138. checking for accept4() ... found
  139. checking for eventfd() ... found
  140. checking for int size ... 4 bytes
  141. checking for long size ... 8 bytes
  142. checking for long long size ... 8 bytes
  143. checking for void * size ... 8 bytes
  144. checking for uint32_t ... found
  145. checking for uint64_t ... found
  146. checking for sig_atomic_t ... found
  147. checking for sig_atomic_t size ...
  148. ./configure: error: can not detect sig_atomic_t size
  149. make: *** No rule to make target `build', needed by `default'.  Stop.
  150. cp: cannot stat 鈥榦bjs/nginx鈥 No such file or directory
  151. Test nginx configure file...
  152. include/upgrade_nginx.sh: line 58: /usr/local/nginx/sbin/nginx: No such file or directory
  153. upgrade...
  154. make: *** No rule to make target `upgrade'.  Stop.
  155. ======== upgrade nginx completed ======
  156. Program will display Nginx Version......
  157. include/upgrade_nginx.sh: line 65: /usr/local/nginx/sbin/nginx: No such file or directory
  158. [root@iZbp1ah56mmzv9abvyfp0zZ lnmp1.3-full]#
复制代码


为什么会提示这个呢:include/upgrade_nginx.sh: line 58: /usr/local/nginx/sbin/nginx: No such file or directory
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2016-12-3 18:59:30 | 显示全部楼层


include/upgrade_nginx.sh: line 58: /usr/local/nginx/sbin/nginx: No such file or directory 这个提示肯定你之前nginx不存在或之前升级失败再运行肯定就这个提示

你上面贴的信息应该是修改过的
lnmp.conf 配置文件是肯定有修改过且有问题,可以自己去看看或删掉安装包重新下载个
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2016-12-3 19:27:17 | 显示全部楼层

回复 2# 的帖子


lnmp.conf 我只修改了Nginx_Modules_Options='--with-openssl=/root/openssl-1.0.2j' ,现在是http2没有生效,我想通过你的教程升级nginx来支持,但是升级就出错

Download_Mirror='http://soft.vpser.net'

Nginx_Modules_Options='--with-openssl=/root/openssl-1.0.2j'
PHP_Modules_Options=''

##MySQL/MariaDB database directory##
MySQL_Data_Dir='/usr/local/mysql/var'
MariaDB_Data_Dir='/usr/local/mariadb/var'
##Default website home directory##
Default_Website_Dir='/home/wwwroot/default'
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2016-12-3 19:32:14 | 显示全部楼层

回复 2# 的帖子




找到原因了,原先我是通过ftp下载lnmp.conf文件,修改后再上传覆盖。
刚才我恢复了原来的文件,然后用vi 命令修改就可以了。感谢!
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-16 18:01 , Processed in 0.026562 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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