手机
当前位置:查字典教程网 >编程开发 >php教程 >yum命令安装php7和相关扩展
yum命令安装php7和相关扩展
摘要:安装php7和相关扩展rpm-Uvhhttp://download.fedoraproject.org/pub/epel/6/x86_64/...

安装php7和相关扩展

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.安装扩展:

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

【yum命令安装php7和相关扩展】相关文章:

PHP默认安装产生系统漏洞

用PHP来写记数器(详细介绍)

消息持续发送的完整例子

国内php原创论坛

使用函数递归实现基于php和MySQL的动态树型菜单

Linux下安装GD

在Windows中安装Apache2和PHP4的权威指南

在WIN98下以apache模块方式安装php

PHP4中实现动态代理

如何获得PHP相关资料

精品推荐
分类导航