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

实战案例:CentOS 7 利用yum安装基于PHP-FPM模式的LAMP

实战案例:CentOS 8上实现PHP-FPM状态页

运维派隶属马哥教育旗下专业运维社区,是国内成立最早的IT运维技术社区,欢迎关注公众号:yunweipai
领取学习更多免费Linux云计算、Python、Docker、K8s教程关注公众号:马哥linux运维

实战案例: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

本文链接:http://www.yunweipai.com/36103.html

实战案例:CentOS 7 利用yum安装基于PHP-FPM模式的LAMP

实战案例:CentOS 8上实现PHP-FPM状态页

网友评论comments

发表评论

邮箱地址不会被公开。

暂无评论

Copyright © 2012-2021 YUNWEIPAI.COM - 运维派 京ICP备16064699号-6
扫二维码
扫二维码
返回顶部