2023-11-10 分類: 網(wǎng)站建設(shè)
OS:CentOs 7
1.查看當(dāng)前 pHp 版本
[root@disconf zbox]# php -v
pHp 5.4.16 (cli) (built: Apr 12 2018 19:02:01)
Copyright (c) 1997-2013 The pHp Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
2.查看當(dāng)前 pHp 相關(guān)的安裝包,刪除之
yum list installed | grep php
yum remove php
yum remove php-*
3.更換 RpM 源
#Centos 5.X:
rpm -Uvh http://mirror.webtatic.com/yum/el5/latest.rpm
#CentOs 6.x:
rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
#CentOs 7.X:
rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
4.安裝新的版本
yum install -y php71w php71w-cli php71w-common php71w-devel php71w-embedded php71w-fpm php71w-gd php71w-mbstring php71w-mysqlnd php71w-opcache php71w-pdo php71w-xml php71w-ldap php71w-mcrypt
5.再次檢查版本
[root@disconf zbox]# php -v
pHp 7.1.27 (cli) (built: Mar 10 2019 16:23:55) ( NTS )
Copyright (c) 1997-2018 The pHp Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
with Zend Opcache v7.1.27, Copyright (c) 1999-2018, by Zend Technologies
-- The End --
文章標(biāo)題:升級(jí)pHp7CentOS7系統(tǒng)下的簡易教程
標(biāo)題URL:http://www.rwnh.cn/news1/293701.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供動(dòng)態(tài)網(wǎng)站、網(wǎng)站內(nèi)鏈、網(wǎng)站設(shè)計(jì)公司、域名注冊(cè)、App開發(fā)、網(wǎng)站制作
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容