yum命令安装php7和相关扩展

安装PHP7和相关扩展

rush:bash;"> rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm rpm -ivh http://Nginx.org/packages/centos/6/noarch/RPMS/Nginx-release-centos-6-0.el6.ngx.noarch.rpm (Nginx) rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

1.cd /etc/yum.repos.d

2.nano remi.repo

>>> [remi-PHP55] name=Remi's PHP 5.5 RPM repository for Enterprise Linux 6 - $basearch #baseurl=http://rpms.remirepo.net/enterprise/6/PHP55/$basearch/ mirrorlist=http://rpms.remirepo.net/enterprise/6/PHP55/mirror # NOTICE: common dependencies are in "remi-safe" enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi >>>>>

将enabled设置为0;

3.nano remi.repo

>> [remi-PHP70] name=Remi's PHP 7.0 RPM repository for Enterprise Linux 6 - $basearch #baseurl=http://rpms.remirepo.net/enterprise/6/PHP70/$basearch/ mirrorlist=http://rpms.remirepo.net/enterprise/6/PHP70/mirror enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi >>>>>

将enabled设置为1;

4.安装扩展:

rush:bash;"> yum install PHP-solr PHP-opcache PHP-seasLog PHP-MysqLnd PHP-hprose PHP-mbstring PHP-mcrypt PHP-mongodb PHP-MysqLi PHP-gd PHP-dom PHP-apc PHP-memcache PHP-redis

service PHP-fpm restart && service Nginx restart

相关文章

统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
前言 之前做了微信登录,所以总结一下微信授权登录并获取用户...
FastAdmin是我第一个接触的后台管理系统框架。FastAdmin是一...
之前公司需要一个内部的通讯软件,就叫我做一个。通讯软件嘛...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...