码迷,mamicode.com
首页 > 其他好文 > 详细

tengine配置监控

时间:2017-07-04 13:26:31      阅读:155      评论:0      收藏:0      [点我收藏+]

标签:tengine配置监控

1.修改nginx.conf配置文件,在http大括号中添加如下配置

 upstream nginx {
     server 192.168.2.140:8080;
     server 192.168.2.136:8080;
     check interval=3000 rise=2 fall=5 timeout=1000 type=http;
     check_http_send "HEAD / HTTP/1.0\r\n\r\n";
     check_http_expect_alive http_2xx http_3xx;
 }


2.在http中的server中添加如下配置

 location /status{
     check_status;
     access_log off;
  }


3.重新启动nginx

 service nginx restart


4.参考官方链接

http://tengine.taobao.org/document/http_upstream_check.html


本文出自 “素颜” 博客,请务必保留此出处http://suyanzhu.blog.51cto.com/8050189/1944332

tengine配置监控

标签:tengine配置监控

原文地址:http://suyanzhu.blog.51cto.com/8050189/1944332

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!