phpfpm开启pm.status_path配置,查看fpm状态参数

php-fpm配置

pm.status_path = /phpfpm_status

nginx配置

server {
    root /data/www;
    listen 80;
    server_name 10.10.20.3;
    index index.html index.htm index.php;

#测试加到虚拟主机里的server访问不成功,就单独配置出来了

location ~ ^/phpfpm_status$ {
        fastcgi_pass unix:/var/run/php-fpm.sock;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
        include fastcgi.conf;
    }

location ~ .*\.(php)?$ {
        fastcgi_pass unix:/var/run/php-fpm.sock;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
        include fastcgi.conf;
    }

}

然后shell下:curl http://10.10.20.3/phpfpm_status

时间: 2024-08-02 23:53:18

phpfpm开启pm.status_path配置,查看fpm状态参数的相关文章

Centos中iptables和firewall防火墙开启、关闭、查看状态、基本设置等(转)

iptables防火墙 1.基本操作 # 查看防火墙状态 service iptables status # 停止防火墙 service iptables stop # 启动防火墙 service iptables start # 重启防火墙 service iptables restart # 永久关闭防火墙 chkconfig iptables off # 永久关闭后重启 chkconfig iptables on 2.查看防火墙状态,防火墙处于开启状态并且只开放了22端口 3.开启80端口

php-fpm开启报错-ERROR: An another FPM instance seems..

在部署项目的时候遇到了 An another FPM instance seems to already listen on /tmp/php-cgi.sock解决方法: netstat -ant | grep 9000 //查看启动进程,发现没启动成功 查看php-fpm.conf里面的配置: vim /usr/local/php/etc/php-fpm.conf [www] listen = /tmp/php-cgi.sock //注意这里,要与下面的一致 listen.backlog =

linux查看防火墙状态及开启关闭命令(转)

存在以下两种方式: 一.service方式 查看防火墙状态: [[email protected] ~]# service iptables status iptables:未运行防火墙. 开启防火墙: [[email protected] ~]# service iptables start 关闭防火墙: [[email protected] ~]# service iptables stop 二.iptables方式 先进入init.d目录,命令如下: [[email protected]

centos 7.0 查看selinux状态|关闭|开启

Linux在安装好之后通常SELinux都是出于默认开启的状态,开启的情况下会导致一些服务的安装不成功. 在不需要的情况下完全可以关闭掉,下面是在centos 7.0里面如何查看,关闭selinux. 查看selinux状态 Linux在安装好之后通常SELinux都是出于默认开启的状态,开启的情况下会导致一些服务的安装不成功. 在不需要的情况下完全可以关闭掉,下面是在centos 7.0里面如何查看,关闭selinux. 查看selinux状态 [[email protected] ~]# s

linux查看防火墙状态及开启关闭命令

查看防火墙状态:  [[email protected] ~]# service iptables status iptables:未运行防火墙. 开启防火墙: [[email protected] ~]# service iptables start 关闭防火墙: [[email protected] ~]# service iptables stop 原文地址:https://www.cnblogs.com/dk1024/p/11747788.html

CentOS下查看网络状态

查看网络状态:lsof -Pnl +M -i4 显示ipv4服务及监听端情况netstat -anp 所有监听端口及对应的进程netstat -tlnp 功能同上 网络基本命令 (1)network service的制御网络接口配置信息改动后,网络服务必须从新启动,来激活网络新配置的使得配置生效,这部分操作和从新启动系统时时一样的作用.制御(控制)是/etc/init.d/network这个文件,可以用这个文件后面加上下面的参数来操作网络服务.例如: [[email protected] ~]#

Linux下防火墙开启相关端口及查看已开启端口

有时候我们辛辛苦苦安装了一个服务却发现无法访问,以为自己没有安装成功,其实解决的方法很简单,就是开启一下相关端口.比如说我安装了Nginx或Apache,那么就需要在防火墙上放行80端口.相关实例代码如下. /sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT #开启80端口 /sbin/iptables -I INPUT -p tcp --dport 22 -j ACCEPT #开启22端口 /etc/rc.d/init.d/iptables

烂泥:FTP服务器开启防火墙相关配置

本文首发于烂泥行天下. 由于工作需要公司最近的一台服务器需要开启启用FTP服务,用来传输文件. 但是考虑到该服务器是在公网,基于安全的考虑一般都是要开启防火墙的.而公司内部的FTP服务器,一般情况下我都是关闭防火墙的. 下面我就将有关防火墙的配置流出如下: OS:windows server 2003.2008 FTP:Filezilla Server 0.9.41 首先是安装FTP服务器,在此我使用时开源FTP服务器Filezill Server.有关Filezilla Server的安装与使

centos6 查看SELinux状态 关闭SELinux

SELinux(Security-Enhanced Linux) 是美国国家安全局(NSA)对于强制访问控制的实现,是 Linux历史上最杰出的新安全子系统.在这种访问控制体系的限制下,进程只能访问那些在他的任务中所需要文件.SELinux 默认安装在 Fedora 和 Red Hat Enterprise Linux 上. 虽然SELinux很好用,但是在多数情况我们还是将其关闭,因为在不了解其机制的情况下使用SELinux会导致软件安装或者应用部署失败 以下就是关闭SELinux的方法 系统