yum如何安装php fpm-PHP问题

资源魔 39 0

yum装置php fpm的办法:起首运转饬令“yum remove php php-co妹妹on”来删除了装置过的php;而后执行饬令“yum install php56w-fpm php56w-opcache”装置php fpm便可。

Centos yum装置php-fpm,不必编译装置

一、删除了

1.一、假如以前编译装置了php,则进入装置地位间接删除了

普通装置地位为/usr/local/php

1.二、假如以前应用yum装置的,则运转

yum remove php php-co妹妹on

二、装置

参考: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:封闭效劳;

更多相干常识,请拜访PHP中文网!

以上就是yum若何装置php fpm的具体内容,更多请存眷资源魔其它相干文章!

标签: php教程 FPM yum php故障解决 php使用问题

抱歉,评论功能暂时关闭!