2024-05-04|閱讀時間 ‧ 約 21 分鐘

Centos 使用yum安裝 PHP 5.6.40教學

簡單紀錄centos 怎麼使用yum安裝 php 5.6.40 ,因為官方內建的庫只有5.4.x,直接下yum install php 會安裝到php5.4版

安裝epel

yum install -y epel-release
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo


安裝remi

rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm


安裝php5.6.x

yum install --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-devel php-mbstring php-mcrypt php-pear php-mysqlnd php-phpunit-PHPUnit php-pecl-xde php-pecl-xhprof -- skip-broken


查看PHP版本

php - v
分享至
成為作者繼續創作的動力吧!
從 Google News 追蹤更多 vocus 的最新精選內容從 Google News 追蹤更多 vocus 的最新精選內容

發表回應

成為會員 後即可發表留言
© 2024 vocus All rights reserved.