最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
CentOS 7.0系统yum安装php5.6的方法
时间:2022-06-30 20:55:08 编辑:袖梨 来源:一聚教程网
安装php5.6版本以后不再需要安装Zend Guard,而是用yum命令安装php-opcache及php-pecl-apcu就可以有效的提高php执行速度。
1. 配置yum源
事先确认yum源的链接是不是有效的。
# 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.*famillec*o*llet.com/enterprise/remi-release-7.rpm
2. 确认安装的php版本
# yum list --enablerepo=remi --enablerepo=remi-php56 | grep php
3. 安装php5.6
# 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-opcache及php-pecl-apcu会有效的提高php执行速度。
4. 确认php版本
# php -v
PHP 5.6.6 (cli) (built: Feb 19 2015 10:19:37)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2015, by Zend Technologies
with Xdebug v2.3.1, Copyright (c) 2002-2015, by Derick Rethans
相关文章
- 大侠立志传一支花怎么结缘 一支花结缘流程攻略 12-06
- 星球重启迷雾异种角使用方法详解 12-06
- 胡桃工具箱官网入口分享 2024最新版本官网地址 12-06
- 大侠立志传曼陀罗怎么结缘 曼陀罗结缘攻略 12-06
- 大侠立志传华青青怎么结缘 华青青结缘攻略 12-06
- 魔兽世界怀旧服Plus灰谷之战声望军需官位置分享 12-06