yum search php7,yum install php7 in centos6

如果有安装的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

yum 安装我们需要的软件1.安装epel软件源1.rpm -qa | grep epel-release 确认当前机器是否用 epel-release (这个源有非常丰富的软件包)

2.sudo yum install epel-release

3.yum --disablerepo=epel -y update ca-certificates2.php7.1 + php-fpm + nginx + apache 统统都可以用 yum 安装啦rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpmyum search php71w 看下为php7.1版本提供了哪些包常用包说明:

mod_php71w.x86_64 : PHP module for the Apache HTTP Server

php71w-bcmath.x86_64 : A module for PHP applications for using the bcmath library

php71w-cli.x86_64 : Command-line interface for PHP

php71w-common.x86_64 : Common files for PHP

php71w-devel.x86_64 : Files needed for building PHP extensions

php71w-fpm.x86_64 : PHP FastCGI Process Manager

php71w-gd.x86_64 : A module for PHP applications for using the gd graphics library

php71w-ldap.x86_64 : A module for PHP applications that use LDAP

php71w-mbstring.x86_64 : A module for PHP applications which need multi-byte string handling

php71w-mcrypt.x86_64 : Standard PHP module provides mcrypt library support

php71w-mysqlnd.x86_64 : A module for PHP applications that use MySQL databases

php71w-pdo.x86_64 : A database access abstraction module for PHP applications

php71w-pecl-redis.x86_64 : Extension for communicating with the Redis key-value store

php71w-opcache.x86_64 : An opcode cache Zend extension

php71w-soap.x86_64 : A module for PHP applications that use the SOAP protocol

php71w-xml.x86_64 : A module for PHP applications which use XML3.安装yum install mod_php71w.x86_64 php71w-fpm.x86_64 php71w-devel.x86_64 php71w-bcmath.x86_64 php71w-cli.x86_64 php71w-common.x86_64 php71w-gd.x86_64 php71w-ldap.x86_64 php71w-mbstring.x86_64 php71w-mcrypt.x86_64 php71w-mysqlnd.x86_64 php71w-pdo.x86_64 php71w-pecl-redis.x86_64 php71w-opcache.x86_64 php71w-soap.x86_64 php71w-xml.x86_64 -y

如果选择用 nginx 那么 mod_php71w.x86_64 就可以不装了,这个包会自动装 apache.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值