Centos7添加epel源并升级php
来源:互联网 发布:钢铁雄心4mac版汉化包 编辑:程序博客网 时间:2024/05/23 21:42
最近在阿里云上入手了一台centos7的服务器,在搭建环境过程中发现php的版本是5.4,且是最新的。可现在php都已经到7了,经查询发现centos为保持稳定性并没用太多的更新源,使得一些软件都过于老。因此为了使用到最新的php版本,我们得在centos中添加一些较新的源。目前在centos系统中较流行的源有epel和remi。接下来我们会添加这两种源来升级php版本。
一、安装源
rpm -Uvh http://ftp.iij.ad.jp/pub/linux/fedora/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
二、确认需要安装的php版本
yum list --enablerepo=remi --enablerepo=remi-php56 | grep php
三、卸载已经安装的php版本
如果系统中已经安装了较低的php版本,请先卸载掉
yun remove php*
四、安装较新的php版本
yum install --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-pecl-apcu php-devel php-mbstring php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhprof php-pdo php-pear php-fpm php-cli php-xml php-bcmath php-process php-gd php-common
查看php版本
php -v
0 0
- Centos7添加epel源并升级php
- Centos7添加epel和elRepo源,并自动挂载硬盘(不修改文件)
- centos7下添加常用YUM源(EPEL/Remi/RPMforge/php/Nginx)
- CentOS7安装EPEL源
- CentOS7安装EPEL源
- CentOS7安装EPEL源
- Centos7 epel源 eprepo源
- CentOS7的EPEL源配置
- centos 添加epel源
- CentOS添加EPEL源
- 为Centos添加EPEL源
- CentOS6.5 添加epel源
- CentOS下添加epel源
- CentOS7安装第三方yum源EPEL
- linux修改系统的yum源为阿里云并添加epel源
- centos7 安装 epel
- Centos7 安装epel
- 为CentOS添加dag源 EPEL源
- Android Studio——appcompatv7报错问题以及解决
- 关于目录树
- Struts2环境配置
- UML——包图
- 把含有&#x字符串的网页还原
- Centos7添加epel源并升级php
- solr5.3.1中的三大主要配置文件
- 探索ListActivity
- http初识--基本概念
- Go 语言变量作用域
- Oc KVC 键值编码
- Linux的tar命令使用
- Go 语言数组
- 《apue》读书笔记 第四章 文件和目录(1)