php5.6.xx_YUM安装

来源:互联网 发布:c语言字符串按长度排序 编辑:程序博客网 时间:2024/06/05 20:33

1640420626@qq.com


1. 追加源

CentOS 6.5
依赖
rpm -Uvh http://ftp.iij.ad.jp/pub/linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
安装
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
CentOS 7.0
yum -y install epel-release
rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm


2. 使用 yum list 命令查看可安装的包(Packege)

yum list –enablerepo=remi –enablerepo=remi-php56 | grep php


3. 安装PHP5.6.x

yum -y 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

删除

yum -y remove  --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

4. yum 安装完成后的常用路径地址

vi /etc/php.ini
date.timezone = Asia/Shanghai

0 0
原创粉丝点击