VPS侦探论坛

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

[Apache] 【已解决】lnmp1.3升级nginx1.12.0.卡死,自动断连接。

[复制链接]
发表于 2017-5-21 03:07:58 | 显示全部楼层 |阅读模式

用upgrade.sh升级nginx.编译过程中卡死,断线。
  1. ****@i***-9nuykzv9:/lnmp1.3-full# ./upgrade.sh
  2. +-----------------------------------------------------------------------+
  3. |            Upgrade script for LNMP V1.3, Written by Licess            |
  4. +-----------------------------------------------------------------------+
  5. |     A tool to upgrade Nginx,MySQL/Mariadb,PHP for LNMP/LNMPA/LAMP     |
  6. +-----------------------------------------------------------------------+
  7. |          For more information please visit http://www.lnmp.org        |
  8. +-----------------------------------------------------------------------+
  9. 1: Upgrade Nginx
  10. 2: Upgrade MySQL
  11. 3: Upgrade MariaDB
  12. 4: Upgrade PHP for LNMP
  13. 5: Upgrade PHP for LNMPA or LAMP
  14. 6: Upgrade MySQL to MariaDB
  15. 7: Upgrade phpMyAdmin
  16. exit: Exit current script
  17. ###################################################
  18. Enter your choice (1, 2, 3, 4, 5, 6, 7 or exit): 1
  19. Current Nginx Version:1.10.0
  20. You can get version number from http://nginx.org/en/download.html
  21. Please enter nginx version you want, (example: 1.7.8): 1.12.0
  22. +---------------------------------------------------------+
  23. |    You will upgrade nginx version to 1.12.0
  24. +---------------------------------------------------------+

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

  26. ============================check files==================================
  27. nginx-1.12.0.tar.gz [found]
  28. ============================check files==================================
  29. Uncompress nginx-1.12.0.tar.gz...
  30. cd nginx-1.12.0...
  31. checking for OS
  32. + Linux 3.13.0-32-generic x86_64
  33. checking for C compiler ... found
  34. + using GNU C compiler
  35. + gcc version: 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
  36. checking for gcc -pipe switch ... found
  37. checking for -Wl,-E switch ... found
  38. checking for gcc builtin atomic operations ... found
  39. checking for C99 variadic macros ... found
  40. checking for gcc variadic macros ... found
  41. checking for gcc builtin 64 bit byteswap ... found
  42. checking for unistd.h ... found
  43. checking for inttypes.h ... found
  44. checking for limits.h ... found
  45. checking for sys/filio.h ... not found
  46. checking for sys/param.h ... found
  47. checking for sys/mount.h ... found
  48. checking for sys/statvfs.h ... found
  49. checking for crypt.h ... found
  50. checking for Linux specific features
  51. checking for epoll ... found
  52. checking for EPOLLRDHUP ... found
  53. checking for EPOLLEXCLUSIVE ... not found
  54. checking for O_PATH ... found
  55. checking for sendfile() ... found
  56. checking for sendfile64() ... found
  57. checking for sys/prctl.h ... found
  58. checking for prctl(PR_SET_DUMPABLE) ... found
  59. checking for sched_setaffinity() ... found
  60. checking for crypt_r() ... found
  61. checking for sys/vfs.h ... found
  62. checking for poll() ... found
  63. checking for /dev/poll ... not found
  64. checking for kqueue ... not found
  65. checking for crypt() ... not found
  66. checking for crypt() in libcrypt ... found
  67. checking for F_READAHEAD ... not found
  68. checking for posix_fadvise() ... found
  69. checking for O_DIRECT ... found
  70. checking for F_NOCACHE ... not found
  71. checking for directio() ... not found
  72. checking for statfs() ... found
  73. checking for statvfs() ... found
  74. checking for dlopen() ... not found
  75. checking for dlopen() in libdl ... found
  76. checking for sched_yield() ... found
  77. checking for SO_SETFIB ... not found
  78. checking for SO_REUSEPORT ... found
  79. checking for SO_ACCEPTFILTER ... not found
  80. checking for SO_BINDANY ... not found
  81. checking for IP_BIND_ADDRESS_NO_PORT ... not found
  82. checking for IP_TRANSPARENT ... found
  83. checking for IP_BINDANY ... not found
  84. checking for IP_RECVDSTADDR ... not found
  85. checking for IP_PKTINFO ... found
  86. checking for IPV6_RECVPKTINFO ... found
  87. checking for TCP_DEFER_ACCEPT ... found
  88. checking for TCP_KEEPIDLE ... found
  89. checking for TCP_FASTOPEN ... found
  90. checking for TCP_INFO ... found
  91. checking for accept4() ... found
  92. checking for eventfd() ... found
  93. checking for int size ... 4 bytes
  94. checking for long size ... 8 bytes
  95. checking for long long size ... 8 bytes
  96. checking for void * size ... 8 bytes
  97. checking for uint32_t ... found
  98. checking for uint64_t ... found
  99. checking for sig_atomic_t ... found
  100. checking for sig_atomic_t size ... 4 bytes
  101. checking for socklen_t ... found
  102. checking for in_addr_t ... found
  103. checking for in_port_t ... found
  104. checking for rlim_t ... found
  105. checking for uintptr_t ... uintptr_t found
  106. checking for system byte ordering ... little endian
  107. checking for size_t size ... 8 bytes
  108. checking for off_t size ... 8 bytes
  109. checking for time_t size ... 8 bytes
  110. checking for AF_INET6 ... found
  111. checking for setproctitle() ... not found
  112. checking for pread() ... found
  113. checking for pwrite() ... found
  114. checking for pwritev() ... found
  115. checking for sys_nerr ... found
  116. checking for localtime_r() ... found
  117. checking for posix_memalign() ... found
  118. checking for memalign() ... found
  119. checking for mmap(MAP_ANON|MAP_SHARED) ... found
  120. checking for mmap("/dev/zero", MAP_SHARED) ... found
  121. checking for System V shared memory ... found
  122. checking for POSIX semaphores ... not found
  123. checking for POSIX semaphores in libpthread ... found
  124. checking for struct msghdr.msg_control ... found
  125. checking for ioctl(FIONBIO) ... found
  126. checking for struct tm.tm_gmtoff ... found
  127. checking for struct dirent.d_namlen ... not found
  128. checking for struct dirent.d_type ... found
  129. checking for sysconf(_SC_NPROCESSORS_ONLN) ... found
  130. checking for openat(), fstatat() ... found
  131. checking for getaddrinfo() ... found
  132. checking for PCRE library ... found
  133. checking for PCRE JIT support ... found
  134. checking for OpenSSL library ... not found
  135. checking for OpenSSL library in /usr/local/ ... found
  136. checking for zlib library ... found
  137. creating objs/Makefile

  138. Configuration summary
  139.   + using system PCRE library
  140.   + using system OpenSSL library
  141.   + using system zlib library

  142.   nginx path prefix: "/usr/local/nginx"
  143.   nginx binary file: "/usr/local/nginx/sbin/nginx"
  144.   nginx modules path: "/usr/local/nginx/modules"
  145.   nginx configuration prefix: "/usr/local/nginx/conf"
  146.   nginx configuration file: "/usr/local/nginx/conf/nginx.conf"
  147.   nginx pid file: "/usr/local/nginx/logs/nginx.pid"
  148.   nginx error log file: "/usr/local/nginx/logs/error.log"
  149.   nginx http access log file: "/usr/local/nginx/logs/access.log"
  150.   nginx http client request body temporary files: "client_body_temp"
  151.   nginx http proxy temporary files: "proxy_temp"
  152.   nginx http fastcgi temporary files: "fastcgi_temp"
  153.   nginx http uwsgi temporary files: "uwsgi_temp"
  154.   nginx http scgi temporary files: "scgi_temp"

  155. ./configure: warning: the "--with-ipv6" option is deprecated
  156. make -f objs/Makefile
  157. make[1]: Entering directory `/lnmp1.3-full/src/nginx-1.12.0'
  158. cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /us -I objs \
  159.                 -o objs/src/core/nginx.o \
  160.                 src/core/nginx.c
  161. *********省略**************

  162. cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/include -I objs -I src/http -I src/http/modules -I src/http/v2 \
  163.                 -o objs/src/http/modules/ngx_http_fastcgi_module.o \
  164.                 src/http/modules/ngx_http_fastcgi_module.c
  165. cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/include -I objs -I src/http -I src/http/modules -I src/http/v2 \
  166.                 -o objs/src/http/modules/ngx_http_uwsgi_module.o \
  167.                 src/http/modules/ngx_http_uwsgi_module.c
  168. cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/include -I objs -I src/http -I src/http/modules -I src/http/v2 \
  169.                 -o objs/src/http/modules/ngx_http_scgi_module.o \
  170.                 src/http/modules/ngx_http_scgi_module.c

  171. Connection closed by foreign host.
复制代码

[ 本帖最后由 cn201507 于 2017-5-26 12:13 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-5-21 11:13:31 | 显示全部楼层


如果升级前使用了screen,升级依然在后台正常运行
没用screen那就用screen后再重新升级 ,screen 教程 https://www.vpser.net/manage/screen.html
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2017-5-26 12:14:36 | 显示全部楼层

谢谢军哥,按你的方法已经成功升级
原帖由 licess 于 2017-5-21 11:13 发表
如果升级前使用了screen,升级依然在后台正常运行
没用screen那就用screen后再重新升级 ,screen 教程 https://www.vpser.net/manage/screen.html
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-23 11:11 , Processed in 0.025683 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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