iT邦幫忙

0

CentOS 7.9 安裝 PHP 8.0(Remi Repo 版本)

  • 分享至 

  • xImage
  •  

20251009更新

1.移除舊 PHP

yum remove -y php*

2.重新裝 Remi repo(強制覆蓋)

rpm -Uvh --force https://rpms.remirepo.net/enterprise/remi-release-7.rpm

3.確認 remi repo 檔案存在

ls /etc/yum.repos.d/remi*.repo

4.啟用 PHP 8.0 repo

yum-config-manager --disable 'remi-php*'
yum-config-manager --enable remi-php80

5.清理並更新快取

yum clean all
yum makecache fast

6.安裝 PHP 8.0

yum --enablerepo=remi-php80 install -y php php-cli php-common php-intl php-mbstring
yum --enablerepo=remi-php80 install -y php-fpm

7.驗證

php -v

圖片
  熱門推薦
圖片
{{ item.channelVendor }} | {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言