美文网首页
centos 通过yum 安装php7

centos 通过yum 安装php7

作者: __默默无闻 | 来源:发表于2018-12-13 11:21 被阅读0次

背景

公司一直使用ubuntu,最近新接的任务,将web程序迁移到centos服务器下。研究了一下在centos下搭建lnmp,记录下其中过程。

安装过程

  • 安装前先确认centos/RHEL版本
uname -a
cat  /etc/redhat-release
  • 将与CentOS / RHEL版本对应的Webtatic EL yum存储库信息添加到yum
CentOS / RHEL 7.x:
yum install epel-release
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

CentOS / RHEL 6.x:
yum install epel-release
rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
  • 现在可以安装php7.0及相关扩展
yum install php70w php70w-fpm
yum install php70w-gd php70w-mbstring php70w-mysql php70-redis php70w-curl php70w-zip php70w-dom

-查看php和php-fpm版本

image.png
  • 安装成功

相关文章

  • 有用教程

    阿里云里Centos 7 PHP7环境配置 LNMP 在centos7通过yum安装PHP7CentOS 7安装完...

  • 安装PHP

    查看 centos 版本 删除之前的 php 版本 rpm 安装 Php7 相应的 yum源 CentOS/RHE...

  • centos 通过yum 安装php7

    背景 公司一直使用ubuntu,最近新接的任务,将web程序迁移到centos服务器下。研究了一下在centos下...

  • 安装memcached

    由于前文“Centos 7.2 yum安装php7”中升级了php到php7,导致之前可以正常使用的phpmyad...

  • centos7 安装 php7

    在centos7系统上安装php7环境,步骤如下所示: 一、安装php7相关的yum源 rpm -Uvh http...

  • centos lanmp环境php5升级为php7

    centos lanmp环境php5升级为php7 更新yum repo 卸载现有版本的php 安装新的php7及...

  • CentOS 7下搭建配置SVN服务器

    1. 安装 CentOS通过yum安装subversion。 yum install subversion 检查一...

  • Ansible 小手册系列 二(安装)

    通过yum(CentOS, RHEL)安装 注:上列是centos 6.7的安装步骤,目前yum的版本是2.1的。...

  • 程序日记2018-05-03

    centos7 安装nginx和php7 centos7 安装nginx和php7 centos7系统安装php7...

  • 通过yum安装redis

    说明 在CentOS系统,通过yum安装Redis。

网友评论

      本文标题:centos 通过yum 安装php7

      本文链接:https://www.haomeiwen.com/subject/wjdvhqtx.html