6396098
2018-10-03
田梗上的梦
2018-04-11
顶一下,我也想知道
比偶
2018-02-26
默认分隔符就是空格或者制表符
煌煌菌
2017-07-02
注释掉,你看到的输出也不是真实的输出;
机器没有启动、服务没有启动、脚本函数没有调用、从服务器IP搞对没有;查看系统日志
田心枫
2017-05-06
个人感觉nginx这几年起来了 性能比Apache好些 电商很多公司都用这个
CrptonX
2017-04-10
就是你自己在nginx服务里面配置的地址
MRWMelon
2017-04-06
1.linux下在命令行输入
netstat -an|grep 3306
2.windows下cmd中输入
netstat -an|findstr 3306
LynChan
2016-10-28
不知道怎么配置nginx的请参见这篇文章
慕粉3699728
2016-10-13
会显示啊,在你的主机名前面有个数字的
花里狐邵
2016-09-20
先学习《Shell典型应用之主控脚本实现》
花里狐邵
2016-09-20
熟练使用VIM文本编辑器,并对shell基础有所了解
何以飘零去
2016-09-14
DingBad
2016-07-21
再试一次
DingBad
2016-07-20
如果没有的话,那就安装下了
snow5hao
2016-02-25
利用操作系统命令
网络命令: ping nslookup, nm-tool, tracertroute,
dig, telnet, nc,curl
监控命令 : ps,netstat,pgrep
进程是否存在
端口是否存在
利用客户端命令,工具
应用客户端:mysql,ab,mongo,php,jstack
第三方工具包:nginxstatus, nagios-libexec
集成命令(考虑可行性,安全性)
服务端接口支持:
1.nginx - http_stub_status_module
2.nutcracker监控集群(redis,memcache) 状态
3.Mongodb
curl -m 5 -s -w %{http_code} http://10.156.11.173/ngx_status
-o /dev/null --去掉一些输出
Resettem=${tput sgr0}
Nginxserver='http://10.156.11.173/nginx_status'
Check_Nginx_Server(){
Status_code=$(curl -m 5 -s -w %{http_code} ${Nginxserver} -o /dev/null)
if[ $Status_code -eq 000 -o $Status_code -ge 500 ];then
echo -e '\E[32m' "check http server error! Response status
code is' $Status_code
else
Http_content=$(curl -s ${Nginxserver})
echo -e '\E[ 32m' "check http server ok! \n"
$Resettem $Http_content
fi
}
Check_Nginx_Server
--执行脚本
sh check_server.sh
cd monitor_man
vim check_server.sh
吕彬
2016-01-20
发的都是些啥子哟
弱弱的风
2016-01-09
首先你要安装了nginx status 模块啊
去找到nginx的配置
vim /usr/local/nginx/conf/nginx.conf
3.在service内加入代码
location /NginxStatus {
stub_status on;
access_log off;
#加入访问限制
allow 192.168.1.44;
allow 192.168.1.14;
deny all;
}
重启你的nginx服务加载配置文件
然后就可以
牙小木
2016-01-05
代码粘贴出来看看呀
qq_8u_0
2015-12-29
什么意思
Dilmuratjohn
2015-12-25