Centos中更新openssl、cur和php的方法
這篇文章主要介紹了關於Centos中更新openssl、cur和php的方法,有著一定的參考價值,現在分享給大家,有需要的朋友可以參考一下
Centos中更新openssl、 cur、php
PHP5 不支援openssl1.1
openssl 降版本
1 wget https://www.openssl.org/source/openssl-1.0.2o.tar.gz 2 tar zxvf openssl-1.0.2o.tar.gz 3 cd openssl-1.0.2o 4 ./config -fPIC --prefix=/usr/local/openssl enable-shared 注释: --prefix:指定安装目录 -fPIC:编译openssl的静态库 enable-shared:编译动态库 5 ./config -t 6 make 7 make install 8 创建软连接 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.conf 9 修改系统自带的库 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.gz 2 tar -zxvf curl-7.60.0.tar.gz 3 cd curl-7.60.0 4 ./configure --with-ssl=/usr/local/openssl --prefix=/usr/local/curl 5 make & make install 6 创建软连接 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.conf 7 curl -V
安裝php 5.6.36
1. wget http://cn.php.net/distributions/php-5.6.36.tar.gz 2. tar zxvf php-5.6.36.tar.gz 3. cd php-5.6.36 4 配置: ./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/openssl 5 make && make install 6 停止php服务: killall php-fpm 7 重启php服务: ./php/sbin/php-fpm -c /usr/local/php/etc/php.ini -y /usr/local/php/etc/php-fpm.conf
以上就是本文的全部內容,希望對大家的學習有所幫助,更多相關內容請關注PHP中文網!
相關推薦:
以上是Centos中更新openssl、cur和php的方法的詳細內容。更多資訊請關注PHP中文網其他相關文章!

熱AI工具

Undresser.AI Undress
人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover
用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool
免費脫衣圖片

Clothoff.io
AI脫衣器

Video Face Swap
使用我們完全免費的人工智慧換臉工具,輕鬆在任何影片中換臉!

熱門文章

熱工具

記事本++7.3.1
好用且免費的程式碼編輯器

SublimeText3漢化版
中文版,非常好用

禪工作室 13.0.1
強大的PHP整合開發環境

Dreamweaver CS6
視覺化網頁開發工具

SublimeText3 Mac版
神級程式碼編輯軟體(SublimeText3)

PHP主要是過程式編程,但也支持面向對象編程(OOP);Python支持多種範式,包括OOP、函數式和過程式編程。 PHP適合web開發,Python適用於多種應用,如數據分析和機器學習。

PHP用於構建動態網站,其核心功能包括:1.生成動態內容,通過與數據庫對接實時生成網頁;2.處理用戶交互和表單提交,驗證輸入並響應操作;3.管理會話和用戶認證,提供個性化體驗;4.優化性能和遵循最佳實踐,提升網站效率和安全性。

PHP適合網頁開發和快速原型開發,Python適用於數據科學和機器學習。 1.PHP用於動態網頁開發,語法簡單,適合快速開發。 2.Python語法簡潔,適用於多領域,庫生態系統強大。

PHP起源於1994年,由RasmusLerdorf開發,最初用於跟踪網站訪問者,逐漸演變為服務器端腳本語言,廣泛應用於網頁開發。 Python由GuidovanRossum於1980年代末開發,1991年首次發布,強調代碼可讀性和簡潔性,適用於科學計算、數據分析等領域。

PHP的核心優勢包括易於學習、強大的web開發支持、豐富的庫和框架、高性能和可擴展性、跨平台兼容性以及成本效益高。 1)易於學習和使用,適合初學者;2)與web服務器集成好,支持多種數據庫;3)擁有如Laravel等強大框架;4)通過優化可實現高性能;5)支持多種操作系統;6)開源,降低開發成本。

PHPhassignificantlyimpactedwebdevelopmentandextendsbeyondit.1)ItpowersmajorplatformslikeWordPressandexcelsindatabaseinteractions.2)PHP'sadaptabilityallowsittoscaleforlargeapplicationsusingframeworkslikeLaravel.3)Beyondweb,PHPisusedincommand-linescrip

PHP適用於Web開發和內容管理系統,Python適合數據科學、機器學習和自動化腳本。 1.PHP在構建快速、可擴展的網站和應用程序方面表現出色,常用於WordPress等CMS。 2.Python在數據科學和機器學習領域表現卓越,擁有豐富的庫如NumPy和TensorFlow。

PHP仍然流行的原因是其易用性、靈活性和強大的生態系統。 1)易用性和簡單語法使其成為初學者的首選。 2)與web開發緊密結合,處理HTTP請求和數據庫交互出色。 3)龐大的生態系統提供了豐富的工具和庫。 4)活躍的社區和開源性質使其適應新需求和技術趨勢。
