Centos 使用yum安裝 PHP 5.6.40教學

閱讀時間約 1 分鐘
簡單紀錄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
1會員
4內容數
postman API 測試
留言0
查看全部
發表第一個留言支持創作者!
從 Google News 追蹤更多 vocus 的最新精選內容