由于CENTOS7.2默认使用老版本的openssl(OpenSSL 1.0.1e) ,这个问题会导致yum nginx-1.12以上版本的时候会因为依赖libcrypto.so.10(OPENSSL_1.0.2)(64bit)的问题造成安装失败。
环境描述
如下:
系统版本检测
[root@z000w00~]# cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
openssl版本检测
[root@z00w00 ~]# openssl version
OpenSSL 1.0.1e-fips 11 Feb 2013
尝试YUM安装nginx
[root@z00w00~]# yum install nginx
Loaded plugins: fastestmirror
aliEpel | 3.2 kB 00:00:00
(1/3): aliEpel/7/x86_64/group_gz | 88 kB 00:00:00
(2/3): aliEpel/7/x86_64/updateinfo | 928 kB 00:00:00
(3/3): aliEpel/7/x86_64/primary | 3.5 MB 00:00:00
Loading mirror speeds from cached hostfile
aliEpel 12614/12614
Resolving Dependencies
--> Running transaction check
---> Package nginx.x86_64 1:1.12.2-2.el7 will be installed
--> Processing Dependency: nginx-filesystem = 1:1.12.2-2.el7 for package: 1:nginx-1.12.2-2.el7.x86_64
--> Processing Dependency: nginx-all-modules = 1:1.12.2-2.el7 for package: 1:nginx-1.12.2-2.el7.x86_64
--> Processing Dependency: nginx-filesystem for package: 1:nginx-1.12.2-2.el7.x86_64
--> Processing Dependency: libcrypto.so.10(OPENSSL_1.0.2)(64bit) for package: 1:nginx-1.12.2-2.el7.x86_64
--> Processing Dependency: libprofiler.so.0()(64bit) for package: 1:nginx-1.12.2-2.el7.x86_64