更新openssl,cur,Centos中的phpPHP5不支持openssl1.1opensslversion1wgethttps://www.openssl.org/source/openssl-1.0.2o.tar.gz2tarzxvfopenssl-1.0.2o.tar.gz3cdopenssl-1.0.2o4./config-fPIC--prefix=/usr/local/opensslenable-shared注意:--prefix:指定安装目录-fPIC:编译openssl的静态库enable-shared:编译动态库5./config-t6make7makeinstall8创建软链接ln-s/usr/local/openssl/bin/openssl/usr/bin/opensslln-s/usr/local/openssl/include/openssl/usr/include/opensslecho"/usr/local/openssl/lib">>/etc/ld.so.conf9修改系统自带的库ln-s/usr/local/openssl/lib/libssl.so/usr/lib64/libssl.socurl重新编译1wgethttps://curl.haxx.se/download/curl-7.60.0.tar.gz2tar-zxvfcurl-7.60.0.tar.gz3cdcurl-7.60.04./configure--with-ssl=/usr/local/openssl--prefix=/usr/local/curl5make&makeinstall6创建软连接ln-s/usr/local/curl/bin/curl/usr/bin/curlln-秒/usr/local/curl/include/curl/usr/include/curlecho"/usr/local/curl/lib">>/etc/ld.so.conf7curl-V安装php5.6.361。wgethttp://cn.php.net/distributions/php-5.6.36.tar.gz2。tarzxvfphp-5.6.36.tar.gz3。cdphp-5.6.364配置:./configure--prefix=/usr/local/php--with-config-file-path=/usr/local/php/etc\--with-mysql=mysqlnd--with-mysqli=mysqlnd\--enable-fpm--enable-mbstring=all\--with-curl=/usr/local/curl\--with-openssl=/usr/local/openssl5make&&makeinstall6停止php服务:killallphp-fpm7重启php服务:./php/sbin/php-fpm-c/usr/local/php/etc/php.ini-y/usr/local/php/etc/php-fpm.conf
