您好,欢迎访问一九零五行业门户网

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

这篇文章主要介绍了关于centos中更新openssl、cur和php的方法,有着一定的参考价值,现在分享给大家,有需要的朋友可以参考一下
centos中更新openssl、cur、phpphp5 不支持 openssl1.1openssl 降版本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.361. wget http://cn.php.net/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
以上就是本文的全部内容,希望对大家的学习有所帮助,更多相关内容请关注!
相关推荐:
在laravel 5.6中 使用swoole的协程数据库查询
php通过反射来得到类以及一些基本的应用
以上就是centos中更新openssl、cur和php的方法的详细内容。
其它类似信息

推荐信息