网站首页  汉语字词  英语词汇  考试资料  写作素材  旧版资料

请输入您要查询的考试资料:

 

标题 yum命令安装php7和相关扩展
内容
    本文给大家简单总结了一下在Linux中使用yum命令安装PHP7和其他相关扩展的方法,有需要的小伙伴可以参考下
    安装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
随便看

 

在线学习网考试资料包含高考、自考、专升本考试、人事考试、公务员考试、大学生村官考试、特岗教师招聘考试、事业单位招聘考试、企业人才招聘、银行招聘、教师招聘、农村信用社招聘、各类资格证书考试等各类考试资料。

 

Copyright © 2002-2024 cuapp.net All Rights Reserved
更新时间:2025/5/18 7:53:22