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的靜態(tài)庫 enable-shared:編譯動態(tài)庫5 ./config -t6 make 7 make install8 創(chuàng)建軟連接 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 修改系統(tǒng)自帶的庫 ln -s /usr/local/openssl/lib/libssl.so /usr/lib64/libssl.socurl 重新編譯
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 創(chuàng)建軟連接 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.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服務(wù): killall php-fpm7 重啟php服務(wù): ./php/sbin/php-fpm -c /usr/local/php/etc/php.ini -y /usr/local/php/etc/php-fpm.conf
以上就是本文的全部內(nèi)容,希望對大家的學(xué)習(xí)有所幫助,更多相關(guān)內(nèi)容請關(guān)注PHP !
相關(guān)推薦:
在Laravel 5.6中 使用Swoole的協(xié)程數(shù)據(jù)庫查詢
PHP通過反射來得到類以及一些基本的應(yīng)用
以上就是Centos中更新openssl、cur和php的方法的詳細(xì)內(nèi)容,PHP教程
鄭重聲明:本文版權(quán)歸原作者所有,轉(zhuǎn)載文章僅為傳播更多信息之目的,如作者信息標(biāo)記有誤,請第一時間聯(lián)系我們修改或刪除,多謝。
新聞熱點
疑難解答
圖片精選