升级Nginx 1.11.6失败 附错误日志 军哥帮看看
Last login: Sat Dec3 17:18:26 2016 from 116.1.96.236Welcome to aliyun Elastic Compute Service!
# ./upgrade.sh nginx
-bash: ./upgrade.sh: No such file or directory
# cd /root/
# ./upgrade.sh nginx
-bash: ./upgrade.sh: No such file or directory
# cd /root/lnmp1.3-full/
# ./upgrade.sh nginx
lnmp.conf: line 1:
为什么会提示这个呢:include/upgrade_nginx.sh: line 58: /usr/local/nginx/sbin/nginx: No such file or directory
\r': command not found
lnmp.conf: line 3:
为什么会提示这个呢:include/upgrade_nginx.sh: line 58: /usr/local/nginx/sbin/nginx: No such file or directory
\r': command not found
lnmp.conf: line 6:
为什么会提示这个呢:include/upgrade_nginx.sh: line 58: /usr/local/nginx/sbin/nginx: No such file or directory
\r': command not found
+-----------------------------------------------------------------------+
| Upgrade script for LNMP V1.3, Written by Licess |
+-----------------------------------------------------------------------+
| A tool to upgrade Nginx,MySQL/Mariadb,PHP for LNMP/LNMPA/LAMP |
+-----------------------------------------------------------------------+
| For more information please visit http://www.lnmp.org |
+-----------------------------------------------------------------------+
Current Nginx Version:1.10.0
You can get version number from http://nginx.org/en/download.html
Please enter nginx version you want, (example: 1.7.8): 1.11.6
+---------------------------------------------------------+
| You will upgrade nginx version to 1.11.6
+---------------------------------------------------------+
Press any key to start...or Press Ctrl+c to cancel
============================check files==================================
Notice: nginx-1.11.6.tar.gz not found!!!download now......
--2016-12-03 17:27:24--http://nginx.org/download/nginx-1.11.6.tar.gz
Resolving nginx.org (nginx.org)... failed: Temporary failure in name resolution.
wget: unable to resolve host address 鈥榥ginx.org鈥
You enter Nginx Version was:1.11.6
Error! You entered a wrong version number, please check!
# ./upgrade.sh nginx
lnmp.conf: line 1:
为什么会提示这个呢:include/upgrade_nginx.sh: line 58: /usr/local/nginx/sbin/nginx: No such file or directory
\r': command not found
lnmp.conf: line 3:
为什么会提示这个呢:include/upgrade_nginx.sh: line 58: /usr/local/nginx/sbin/nginx: No such file or directory
\r': command not found
lnmp.conf: line 6:
为什么会提示这个呢:include/upgrade_nginx.sh: line 58: /usr/local/nginx/sbin/nginx: No such file or directory
\r': command not found
+-----------------------------------------------------------------------+
| Upgrade script for LNMP V1.3, Written by Licess |
+-----------------------------------------------------------------------+
| A tool to upgrade Nginx,MySQL/Mariadb,PHP for LNMP/LNMPA/LAMP |
+-----------------------------------------------------------------------+
| For more information please visit http://www.lnmp.org |
+-----------------------------------------------------------------------+
Current Nginx Version:1.10.0
You can get version number from http://nginx.org/en/download.html
Please enter nginx version you want, (example: 1.7.8): 1.11.6
+---------------------------------------------------------+
| You will upgrade nginx version to 1.11.6
+---------------------------------------------------------+
Press any key to start...or Press Ctrl+c to cancel
============================check files==================================
Notice: nginx-1.11.6.tar.gz not found!!!download now......
--2016-12-03 17:28:39--http://nginx.org/download/nginx-1.11.6.tar.gz
Resolving nginx.org (nginx.org)... 206.251.255.63, 95.211.80.227, 2001:1af8:4060:a004:21::e3, ...
Connecting to nginx.org (nginx.org)|206.251.255.63|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 960331 (938K)
Saving to: 鈥榥ginx-1.11.6.tar.gz鈥
100%[======================================>] 960,331 8.83KB/s in 2m 11s
2016-12-03 17:30:53 (7.14 KB/s) - 鈥榥ginx-1.11.6.tar.gz鈥saved
Download nginx-1.11.6.tar.gz successfully!
============================check files==================================
Uncompress nginx-1.11.6.tar.gz...
cd nginx-1.11.6...
checking for OS
+ Linux 3.10.0-327.22.2.el7.x86_64 x86_64
checking for C compiler ... found
+ using GNU C compiler
+ gcc version: 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC)
checking for gcc -pipe switch ... found
checking for -Wl,-E switch ... found
checking for gcc builtin atomic operations ... found
checking for C99 variadic macros ... found
checking for gcc variadic macros ... found
checking for gcc builtin 64 bit byteswap ... found
checking for unistd.h ... found
checking for inttypes.h ... found
checking for limits.h ... found
checking for sys/filio.h ... not found
checking for sys/param.h ... found
checking for sys/mount.h ... found
checking for sys/statvfs.h ... found
checking for crypt.h ... found
checking for Linux specific features
checking for epoll ... found
checking for EPOLLRDHUP ... found
checking for EPOLLEXCLUSIVE ... not found
checking for O_PATH ... found
checking for sendfile() ... found
checking for sendfile64() ... found
checking for sys/prctl.h ... found
checking for prctl(PR_SET_DUMPABLE) ... found
checking for sched_setaffinity() ... found
checking for crypt_r() ... found
checking for sys/vfs.h ... found
checking for poll() ... found
checking for /dev/poll ... not found
checking for kqueue ... not found
checking for crypt() ... not found
checking for crypt() in libcrypt ... found
checking for F_READAHEAD ... not found
checking for posix_fadvise() ... found
checking for O_DIRECT ... found
checking for F_NOCACHE ... not found
checking for directio() ... not found
checking for statfs() ... found
checking for statvfs() ... found
checking for dlopen() ... not found
checking for dlopen() in libdl ... found
checking for sched_yield() ... found
checking for SO_SETFIB ... not found
checking for SO_REUSEPORT ... found
checking for SO_ACCEPTFILTER ... not found
checking for SO_BINDANY ... not found
checking for IP_BIND_ADDRESS_NO_PORT ... not found
checking for IP_TRANSPARENT ... found
checking for IP_BINDANY ... not found
checking for IP_RECVDSTADDR ... not found
checking for IP_PKTINFO ... found
checking for IPV6_RECVPKTINFO ... found
checking for TCP_DEFER_ACCEPT ... found
checking for TCP_KEEPIDLE ... found
checking for TCP_FASTOPEN ... found
checking for TCP_INFO ... found
checking for accept4() ... found
checking for eventfd() ... found
checking for int size ... 4 bytes
checking for long size ... 8 bytes
checking for long long size ... 8 bytes
checking for void * size ... 8 bytes
checking for uint32_t ... found
checking for uint64_t ... found
checking for sig_atomic_t ... found
checking for sig_atomic_t size ...
./configure: error: can not detect sig_atomic_t size
make: *** No rule to make target `build', needed by `default'.Stop.
cp: cannot stat 鈥榦bjs/nginx鈥 No such file or directory
Test nginx configure file...
include/upgrade_nginx.sh: line 58: /usr/local/nginx/sbin/nginx: No such file or directory
upgrade...
make: *** No rule to make target `upgrade'.Stop.
======== upgrade nginx completed ======
Program will display Nginx Version......
include/upgrade_nginx.sh: line 65: /usr/local/nginx/sbin/nginx: No such file or directory
#
为什么会提示这个呢:include/upgrade_nginx.sh: line 58: /usr/local/nginx/sbin/nginx: No such file or directory include/upgrade_nginx.sh: line 58: /usr/local/nginx/sbin/nginx: No such file or directory 这个提示肯定你之前nginx不存在或之前升级失败再运行肯定就这个提示
你上面贴的信息应该是修改过的
lnmp.conf 配置文件是肯定有修改过且有问题,可以自己去看看或删掉安装包重新下载个
回复 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'
回复 2# 的帖子
找到原因了,原先我是通过ftp下载lnmp.conf文件,修改后再上传覆盖。刚才我恢复了原来的文件,然后用vi 命令修改就可以了。感谢!
页:
[1]