温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

如何在yum安装php fpm

发布时间:2020-07-28 16:40:17 来源:亿速云 阅读:230 作者:Leah 栏目:编程语言

今天就跟大家聊聊有关如何在yum安装php fpm,可能很多人都不太了解,为了让大家更加了解,小编给大家总结了以下内容,希望大家根据这篇文章可以有所收获。

yum安装php fpm的方法:首先运行命令“yum remove php php-common”来删除安装过的php;然后执行命令“yum install php56w-fpm php56w-opcache”安装php fpm即可。

Centos yum安装php-fpm,不用编译安装

1、删除

1.1、如果之前编译安装了php,则进入安装位置直接删除

一般安装位置为/usr/local/php

1.2、如果之前使用yum安装的,则运行

yum remove php php-common

2、安装

参考:https://webtatic.com/packages/php56/

以下以安装5.6x版本为例:

CentOS/RHEL 6.x:
yum install epel-release
rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
Now you can install PHP 5.6’s mod_php SAPI (along with an opcode cache) by doing:
yum install php56w php56w-opcache
You can alternatively install PHP 5.6’s php-fpm SAPI (along with an opcode cache by doing:
yum install php56w-fpm php56w-opcache

备注说明:

yum install php56w php56w-opcache:安装opcache扩展,安装其他扩展同理

php -m:查看已经安装的扩展;

whereis php :查看php-fpm的安装位置;

service php-pfm start:开启php-pfm服务;

pkill php-fpm:关闭服务;

看完上述内容,你们对如何在yum安装php fpm有进一步的了解吗?如果还想了解更多知识或者相关内容,请关注亿速云行业资讯频道,感谢大家的支持。

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI