查看NGINX启用了那些模块:

# ./nginx -V
Tengine version: Tengine/2.1. (nginx/1.6.)
built by gcc 4.4. (Red Hat 4.4.-) (GCC)
TLS SNI support enabled
configure arguments: --prefix=/apps/tengine-2.1.
loaded modules:
ngx_core_module (static)
ngx_errlog_module (static)
ngx_conf_module (static)
ngx_dso_module (static)
ngx_syslog_module (static)
ngx_events_module (static)
ngx_event_core_module (static)
ngx_epoll_module (static)
ngx_procs_module (static)
ngx_proc_core_module (static)
ngx_openssl_module (static)
ngx_regex_module (static)
ngx_http_module (static)
ngx_http_core_module (static)
ngx_http_log_module (static)
ngx_http_upstream_module (static)
ngx_http_static_module (static)
ngx_http_autoindex_module (static)
ngx_http_index_module (static)
ngx_http_auth_basic_module (static)
ngx_http_access_module (static)
ngx_http_limit_conn_module (static)
ngx_http_limit_req_module (static)
ngx_http_geo_module (static)
ngx_http_map_module (static)
ngx_http_split_clients_module (static)
ngx_http_referer_module (static)
ngx_http_rewrite_module (static)
ngx_http_ssl_module (static)
ngx_http_proxy_module (static)
ngx_http_fastcgi_module (static)
ngx_http_uwsgi_module (static)
ngx_http_scgi_module (static)
ngx_http_memcached_module (static)
ngx_http_empty_gif_module (static)
ngx_http_browser_module (static)
ngx_http_user_agent_module (static)
ngx_http_upstream_ip_hash_module (static)
ngx_http_upstream_consistent_hash_module (static)
ngx_http_upstream_check_module (static) #nginx的健康检查模块安装了
ngx_http_upstream_least_conn_module (static)
ngx_http_reqstat_module (static)
ngx_http_upstream_keepalive_module (static)
ngx_http_upstream_dynamic_module (static)
ngx_http_stub_status_module (static)
ngx_http_write_filter_module (static)
ngx_http_header_filter_module (static)
ngx_http_chunked_filter_module (static)
ngx_http_range_header_filter_module (static)
ngx_http_gzip_filter_module (static)
ngx_http_postpone_filter_module (static)
ngx_http_ssi_filter_module (static)
ngx_http_charset_filter_module (static)
ngx_http_userid_filter_module (static)
ngx_http_footer_filter_module (static)
ngx_http_trim_filter_module (static)
ngx_http_headers_filter_module (static)
ngx_http_upstream_session_sticky_module (static)
ngx_http_copy_filter_module (static)
ngx_http_range_body_filter_module (static)
ngx_http_not_modified_filter_module (static)

在nginx.conf增加配置文件里的upstream加入健康检 查,如下:

uptream name {
server 192.168.0.21:;
server 192.168.0.22:;
check interval= rise= fall= timeout= type=http;
}
#上面配置的意思是,对name这个负载均衡条目中的所有节点,每个3秒检测一资,请求2资下正常则标记realserver状态为up,如果检测5次都失败,则标记realserver的状态为down,超时间为1秒。

最新文章

  1. 非正常关闭myeclicps后,出现错误Errors occurred during the build.的解决方法
  2. js 继承
  3. wwdc2016-session707 Notifications(draft)
  4. IE7中line-height垂直居中问题
  5. Part 94 Difference between Monitor and lock in C#
  6. 修改VMware Workstation 界面语言
  7. 匿名方法和Lambda表达式
  8. Android 测试工具集02
  9. hdu 4284 Travel(floyd + TSP)
  10. DevOps之服务故障
  11. form 表单处理
  12. set&enum小结(database)
  13. STL --> find()和find_if()
  14. Spring Boot微服务架构入门
  15. springboot2.0拦截器和webconfigure配置
  16. linux运维架构师职业规划
  17. Contributed to JFairy
  18. TFT1.44显示屏
  19. Android ADB命令教程二——ADB命令详解
  20. MYSQL千万级数据量的优化方法积累

热门文章

  1. 通过OnResultExecuted设置返回内容为JSONP
  2. 一行代码解决ie6,7,8,9,10兼容性问题
  3. LVS持久连接
  4. java中Arraylist复制方法
  5. zTree简单实现
  6. 一、Daily Scrum Meeting【Alpha】------Clover
  7. 11月6日下午PHP注册审核(审核状态控制登录、可以更改审核状态)
  8. Java正则认识
  9. mysql_fetch_array,mysql_fetch_row,mysql_fetch_assoc区别
  10. go智能提示(重要)