yum如何安装php-fpm
2022-12-02 09:01:16
104
{{single.collect_count}}

yum安装php-fpm的方法:首先配置好yum源;然后安装PHP;最后执行命令“yum install --enablerepo=remi --enablerepo=remi-php56 php-fpm”安装“php-fpm”即可。

php入门到就业线上直播课:进入学习
Apipost = Postman + Swagger + Mock + Jmeter 超好用的API调试工具:点击使用

推荐:《PHP教程

CentOS yum安装PHP5.6以及php-fpm

简单介绍一下,如何在CentOS上安装升级PHP5.6。

配置yum源

追加CentOS 6.5的epel及remi源。

以下是CentOS 7.0的源。

yum install epel-release rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
登录后复制
yum install epel-releaserpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
登录后复制

安装PHP5.6

yum源配置好了,下一步就安装PHP5.6。

yum install -y --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
登录后复制

注意:bcmath 不安装mcrypt有时候用不了 ,,

用PHP命令查看版本。

php --versionPHP 5.6.0 (cli) (built: Sep3 2014 19:51:31) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies with Xdebug v2.2.5, Copyright (c) 2002-2014, by Derick Rethans
登录后复制

在这里安装的版本是PHP5.6.0,细心的用户可能已经发现ZendGuardLoader变成Zend OPcahe了。

对从PHP5.5开始PHP代码缓存从APC变成了Zend OPcache了。

如果配置nginx的话,还需要安装php-fpm

yum install --enablerepo=remi --enablerepo=remi-php56 php-fpm
登录后复制

启动PHP-FPM服务:

systemctl start php-fpm.service
登录后复制

以上就是yum如何安装php-fpm的详细内容,更多请关注php中文网其它相关文章!

回帖
全部回帖({{commentCount}})
{{item.user.nickname}} {{item.user.group_title}} {{item.friend_time}}
{{item.content}}
{{item.comment_content_show ? '取消' : '回复'}} 删除
回帖
{{reply.user.nickname}} {{reply.user.group_title}} {{reply.friend_time}}
{{reply.content}}
{{reply.comment_content_show ? '取消' : '回复'}} 删除
回帖
收起
没有更多啦~
{{commentLoading ? '加载中...' : '查看更多评论'}}