centos7.4php测试,CentOS7.4 通过yum安装php7.0
一、刪除舊版本
如果已經安裝過php就先刪除之前的版本。檢查方法如下:
yum?list?installed?|?grep?php
然后將安裝的包進行刪除
比如?yum?remove?php.x86_64?php-cli.x86_64?php-common.x86_64?php-gd.x86_64?php-ldap.x86_64?php-mbstring.x86_64?php-mcrypt.x86_64?php-mysql.x86_64?php-pdo.x86_64
具體根據顯示的安裝列表的名稱進行相應的刪除
二、安裝新版版
1.?更新yum安裝包
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
CentOS?6.x
rpm?-Uvh?http://mirror.webtatic.com/yum/el6/latest.rpm
CentOS?5.x
rpm?-Uvh?http://mirror.webtatic.com/yum/el5/latest.rpm
2.?通過云進行php和其他組件的安裝
yum?install?php70w.x86_64?php70w-cli.x86_64?php70w-common.x86_64?php70w-gd.x86_64?php70w-ldap.x86_64?php70w-mbstring.x86_64?php70w-mcrypt.x86_64?php70w-mysql.x86_64?php70w-pdo.x86_64
yum?install?php70w-fpm
其他需要的組件在自行安裝。
三、其他版本php安裝
如果想安裝php5.5或者5.6版本,將上面的php70w替換為php55w或者php56w就可以了。
總結
以上是生活随笔為你收集整理的centos7.4php测试,CentOS7.4 通过yum安装php7.0的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: git rebase用法_Git入门实战
- 下一篇: 硬件nat关闭还是开启_超能课堂(173