kuke21 发表于 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)
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

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: *** Error 1
make: Leaving directory `/root/lnmp1.3-full/src/nginx-1.10.2'
make: *** 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: *** 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


licess 发表于 2017-1-25 19:56:21

自动openssl升级导致的
完整卸载你自己弄的openssl不过可能会不干净建议重新安装系统

kuke21 发表于 2017-1-26 11:35:04

好的,谢谢军哥   新年快乐
页: [1]
查看完整版本: 军哥请帮我看看这个怎么办