登录注册

18250178511

Centos 6/ 7下通过yum安装php7环境

作者:admin      时间:2018-03-20 09:01:53

删除之前的 php 版本

# yum remove php* php-common


rpm 安装 Php7 相应的 yum源

CentOS/RHEL 7.x:

# rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
# rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm


CentOS/RHEL 6.x:
# rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm

yum安装php7

# yum install php70w php70w-opcache


如果之前已经安装我们先卸载一下

yum -y remove php*
由于linux的yum源不存在php7.x,所以我们要更改yum源

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm



yum 安装php72w和各种拓展,选自己需要的即可

yum -y install php72w php72w-cli php72w-common php72w-fpm php72w-devel php72w-embedded php72w-fpm php72w-gd php72w-mbstring php72w-mysqlnd php72w-opcache php72w-pdo php72w-xml




发表评论

评论列表

匿名

Whoa many of beneficial info! <a href=https://viaonlinebuymsn.com/>100mg viagra without a doctor prescription</a>

2020-01-12 22:24:33

匿名

You actually revealed this effectively. <a href="https://acyclovir-buy.com/">Brand Zovirax Buy Online</a> <a href="https://lexapro-coupon.com/">escitalopram 10mg</a> <a href="https://allopurinol-online.com/">zyloric 300</a> <a href="https://drug-prednisone.com/">prednison</a> <a href="https://kamagra-cheapest.com/">Cialis Kamagra Vergleich</a> <a href="https://viaonlinebuyntx.com/">list of approved canadian pharmacies</a> <a href="https://celexa-overnight.com/">citalopram hbr</a>

2020-01-12 22:18:53

匿名

Whoa loads of great information. <a href="https://buy-furosemide-online-40mg20mg.com/">lasix medication</a> <a href="https://online-retin-a-cheap.com/">Tretinoin 45</a> <a href="https://bactrimprice.com/">bactrim forte</a> <a href="https://drug-prednisone.com/">Prednisone Cost Walgreens</a>

2020-01-12 21:52:40

匿名

Many thanks! Excellent information! <a href="https://viaonlinebuyntx.com/">viagra for sale</a>

2020-01-12 20:44:14

匿名

Amazing lots of excellent tips. <a href="https://flomaxtoday.com/">tamsulosina</a>

2020-01-12 20:38:23