摘要:
keepalive的配置文件 使用的脚本:/root/check_code.py (该脚本检查http的状态吗,如果不是200,则关闭keepalive服务,使VIP漂移到备份机上) #!/usr/bin/env python import urllib2 import os url = 'http 阅读全文
摘要:
在安装文件中有范例说明 /usr/share/doc/keepalived-1.2.13/samples/ Keepalived:它的诞生最初是为ipvs(一些服务,内核中的一些规则)提供高可用性的,最初最主要目的是能够自主调用ipvsadm来生成规则,并且能够自动实现将用户访问的地址转移到其他节点 阅读全文
摘要:
介绍: 介绍: TCP中的keepalive tcp中的三次握手 链接建立之后,如果应用程序或者上层协议一直不发送数据,或者隔很长时间才发送一次数据,当链接很久没有数据报文传输时如何去确定对方还在线,到底是掉线了还是确实没有数据传输,链接还需不需要保持,这种情况在TCP协议设计中是需要考虑到的。 T 阅读全文
摘要:
#!/bin/bash #descript: auto make iso Script #date: 20160701 #function area # #function: check error function_runcheck(){ if [ $1 != 0 ];then echo "------------------------" echo "... 阅读全文
摘要:
分析java.lang.OutOfMemoryError: PermGen space 发现很多人把问题归因于: spring,hibernate,tomcat,因为他们动态产生类,导致JVM中的permanent heap溢出 。 然后解决方法众说纷纭,有人说升级 tomcat版本到最新甚至干脆不 阅读全文
摘要:
编译:./configure --prefix=/usr/local/nginx --add-module=../ngx-fancyindex-master 配置: location / { fancyindex on; 开启fancy索引 fancyindex_exact_size off; 不使 阅读全文
摘要:
location / { autoindex on; autoindex_localtime on; } 阅读全文
摘要:
编译:./configure --prefix=/usr/local/nginx --add-module=../ngx_http_status_code_counter-master make && make install 配置: location /ttlsa_http_code_status 阅读全文
摘要:
编译: ./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_realip_module--with-http_image_filter_module --with-debug 配置: 参数: 阅读全文
摘要:
1.高层的配置 worker_processes 定义了nginx对外提供web服务时的worker进程数 worker_rlimit_nofile 更改worker进程最大打开文件数量限制,如果没有配置,以系统限制2. Events模块 阅读全文