VPS侦探论坛

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

军哥请帮我看看这个怎么办

[复制链接]
发表于 2017-1-25 13:20:13 | 显示全部楼层 |阅读模式

lnmp1.3 默认的nginx是1.10.0  用upgrade.sh升级nginx 1.10.2 升级不上去  
Centos 6.8 安装完环境后 编译升级一次过openssl为OpenSSL 1.0.2j  


以下为日志 请军哥帮我一下 谢谢

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): +---------------------------------------------------------+
|    You will upgrade nginx version to 1.10.2
+---------------------------------------------------------+

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

============================check files==================================
Notice: nginx-1.10.2.tar.gz not found!!!download now......
--2017-01-25 12:14:33--  http://nginx.org/download/nginx-1.10.2.tar.gz
Resolving nginx.org... 95.211.80.227, 206.251.255.63, 2606:7100:1:69::3f, ...
Connecting to nginx.org|95.211.80.227|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 910812 (889K) [application/octet-stream]
Saving to: “nginx-1.10.2.tar.gz”


0% [                                       ] 0           --.-K/s              
1% [                                       ] 17,094      65.1K/s              
4% [>                                      ] 43,158      82.1K/s              
9% [==>                                    ] 82,254       104K/s              
16% [=====>                                 ] 145,966      139K/s              
23% [========>                              ] 212,574      162K/s              
34% [============>                          ] 311,038      197K/s              
49% [==================>                    ] 451,870      245K/s              
70% [==========================>            ] 638,662      303K/s              
98% [=====================================> ] 900,806      380K/s              
100%[======================================>] 910,812      384K/s   in 2.3s   

2017-01-25 12:14:38 (384 KB/s) - “nginx-1.10.2.tar.gz” saved [910812/910812]

Download nginx-1.10.2.tar.gz successfully!
============================check files==================================
Uncompress nginx-1.10.2.tar.gz...
cd nginx-1.10.2...
checking for OS
+ Linux 2.6.32-642.13.1.el6.x86_64 x86_64
checking for C compiler ... found
+ using GNU C compiler
+ gcc version: 4.4.7 20120313 (Red Hat 4.4.7-17) (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
  编译细节.....()

objs/ngx_modules.o \

-ldl -lpthread -lcrypt -lpcre -lssl -lcrypto -ldl -lz \

-Wl,-E
objs/src/event/ngx_event_openssl.o: In function `ngx_ssl_check_host':
/root/lnmp1.3-full/src/nginx-1.10.2/src/event/ngx_event_openssl.c:2997: undefined reference to `X509_check_host'
objs/src/http/ngx_http_request.o: In function `ngx_http_ssl_handshake_handler':
/root/lnmp1.3-full/src/nginx-1.10.2/src/http/ngx_http_request.c:780: undefined reference to `SSL_get0_alpn_selected'
objs/src/http/modules/ngx_http_ssl_module.o: In function `ngx_http_ssl_merge_srv_conf':
/root/lnmp1.3-full/src/nginx-1.10.2/src/http/modules/ngx_http_ssl_module.c:653: undefined reference to `SSL_CTX_set_alpn_select_cb'
collect2: ld returned 1 exit status
make[1]: *** [objs/nginx] Error 1
make[1]: Leaving directory `/root/lnmp1.3-full/src/nginx-1.10.2'
make: *** [build] Error 2
cp: cannot stat `objs/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...
/usr/local/nginx/sbin/nginx -t
make: /usr/local/nginx/sbin/nginx: Command not found
make: *** [upgrade] Error 127
======== upgrade nginx completed ======
Program will display Nginx Version......
include/upgrade_nginx.sh: line 65: /usr/local/nginx/sbin/nginx: No such file or directory


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-1-25 19:56:21 | 显示全部楼层


自动openssl升级导致的
完整卸载你自己弄的openssl不过可能会不干净建议重新安装系统
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2017-1-26 11:35:04 | 显示全部楼层

好的,谢谢军哥   新年快乐
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-27 23:27 , Processed in 0.026924 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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