设为首页 加入收藏

TOP

CentOS 7使用yum安装PHP5.6
2019-09-19 11:10:31 】 浏览:59
Tags:CentOS 使用 yum 安装 PHP5.6

 

删除旧php包

yum remove php.x86_64 php-cli.x86_64 php-common.x86_64 php-gd.x86_64 php-ldap.x86_64 php-mbstring.x86_64 php-mcrypt.x86_64 php-mysql.x86_64 php-pdo.x86_64 

配置epel源

yum install -y epel-release
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

配置remi源

rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

安装php5.6.x

yum install --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-devel php-mbstring php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhprof

安装php-fpm

yum install --enablerepo=remi --enablerepo=remi-php56 php-fpm 

配置开机启动服务

systemctl restart php-fpm
systemctl enable php-frm

查看是否安装成功

ps -ef | grep php
netstat -anp | grep 9000
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇[PHP] 存储改造中的逻辑和清理遗.. 下一篇laravel中利用循环实现隔行换色

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目