栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > PHP > LAMP教程

实战案例:CentOS 7 利用清华yum源实现PHP-FPM的UDS模式

LAMP教程 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

实战案例:CentOS 7 利用清华yum源实现PHP-FPM的UDS模式

实战案例:CentOS 7 利用清华yum源实现PHP-FPM的UDS模式
[root@centos7 ~]#yum install https://mirrors.tuna.tsinghua.edu.cn/remi/enterprise/remi-release-7.rpm
[root@centos7 ~]#yum install httpd php73-php-fpm  -y
[root@centos7 ~]#vim /etc/opt/remi/php73/php-fpm.d/www.conf
listen = /var/run/php.sock
listen.owner = apache
listen.group = apache
listen.mode = 0660
pm.status_path = /fpm_status 
ping.path = /ping

[root@centos7 ~]#vim /etc/httpd/conf.d/fcgi.conf
DirectoryIndex index.php
ProxyRequests Off
#ProxyPassMatch ^/(.*.php)fcgi://10.0.0.17:9000/data/html/1
ProxyPassMatch ^/(.*.php)unix:/var/run/php.sock|fcgi://localhost/data/html/1
ProxyPassMatch ^/(fpm_status|ping) unix:/var/run/php.sock|fcgi://localhost  

[root@centos7 ~]#systemctl restart httpd php73-php-fpm.service
[root@centos7 ~]#curl http://127.0.0.1/ping
pong[root@centos7 ~]#curl http://127.0.0.1/fpm_status
pool:                 www
process manager:      dynamic
start time:           11/Mar/2020:11:43:56 +0800
start since:          488
accepted conn:        8
listen queue:         0
max listen queue:     0
listen queue len:     0
idle processes:       4
active processes:     1
total processes:      5
max active processes: 1
max children reached: 0
slow requests:        0
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/10385.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号