Centos中更新openssl、cur和php的方法

Centos中更新openssl、cur和php的方法

内容导读

收集整理的这篇技术教程文章主要介绍了Centos中更新openssl、cur和php的方法,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1849字,纯文字阅读大概需要3分钟

内容图文

这篇文章主要介绍了关于Centos中更新openssl、cur和php的方法,有着一定的参考价值,现在分享给大家,有需要的朋友可以参考一下

Centos中更新openssl、cur、php

PHP5 不支持 openssl1.1

openssl 降版本

1 wget https://www.openssl.org/source/openssl-1.0.2o.tar.gz2 tar zxvf openssl-1.0.2o.tar.gz3 cd openssl-1.0.2o4 ./config -fPIC --prefix=/usr/local/openssl enable-shared
注释: --prefix:指定安装目录 -fPIC:编译openssl的静态库
enable-shared:编译动态库 5 ./config -t6 make 7 make install8 创建软连接
 ln -s /usr/local/openssl/bin/openssl /usr/bin/openssl
ln -s /usr/local/openssl/include/openssl /usr/include/openssl
echo "/usr/local/openssl/lib" >> /etc/ld.so.conf9 修改系统自带的库
ln -s /usr/local/openssl/lib/libssl.so /usr/lib64/libssl.so

curl 重新编译

1 wget https://curl.haxx.se/download/curl-7.60.0.tar.gz2 tar -zxvf curl-7.60.0.tar.gz 3 cd curl-7.60.04 ./configure --with-ssl=/usr/local/openssl
--prefix=/usr/local/curl5 make & make install6 创建软连接
ln -s /usr/local/curl/bin/curl /usr/bin/curl
ln -s /usr/local/curl/include/curl /usr/include/curl
echo "/usr/local/curl/lib" >> /etc/ld.so.conf7 curl -V

安装php 5.6.36

1. wget http://cn.php.com/distributions/php-5.6.36.tar.gz2. tar zxvf php-5.6.36.tar.gz3. cd php-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/openssl5 make && make install6 停止php服务:
 killall php-fpm7 重启php服务:
 ./php/sbin/php-fpm -c /usr/local/php/etc/php.ini -y /usr/local/php/etc/php-fpm.conf

以上就是本文的全部内容,希望对大家的学习有所帮助,更多相关内容请关注PHP中文网!

相关推荐:

在Laravel 5.6中 使用Swoole的协程数据库查询

以上就是Centos中更新openssl、cur和php的方法的详细内容,更多请关注Gxl网其它相关文章!

内容总结

以上是为您收集整理的Centos中更新openssl、cur和php的方法全部内容,希望文章能够帮你解决Centos中更新openssl、cur和php的方法所遇到的程序开发问题。 如果觉得技术教程内容还不错,欢迎将网站推荐给程序员好友。

内容备注

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。


本文关键词:

联系我们

在线咨询:点击这里给我发消息

邮件:w420220301@qq.com