原创 我的友情鏈接
51CTO博客開發
原创 script for keepalived
#by leal #2012-04-13 #!/bin/bash [ $(id -u) -ne 0 ] && echo "Must run as root" && exit pidfile="/var/run/keepalived.pi
原创 multi-process script for ping host
#!/bin/bash #How many threads you want to concurrent threadnum=3 #set file description to 8 tempfifo="/tmp/$$.fifo
原创 我的友情鏈接
51CTO博客開發
原创 始記
學C一個多月了,大爺的連一個簡單的文件複製都寫不出來,蛋,...
原创 nagios plugins for check remote port status
#!/bin/bash alertC="" monitor_type="" iftype=false check_ip="" usage() { cat << EOF Usage:$(basename $0) opti
原创 optimize mysql
一: 避免使用swap 1、/proc/sys/vm/swappiness的內容改成0(臨時),/etc/sysctl.conf上添加vm.swappiness=0(永久) 這個參數決定了Linux是傾向於使用swap,還是傾向於釋放文件
原创 simple locked ip script
最近幾天一服務器總被DOS,又想偷懶,所以來個簡單粗暴的. 本腳本適用於ubuntu, ''' Created on Mar 1, 2012 @author: leal ''' import os import datetim
原创 munin plugin for proxy_cache by shell
#!/bin/bash . $MUNIN_LIBDIR/plugins/plugin.sh if [ "$1" = "autoconf" ]; then echo yes exit 0 fi
原创 mysql error fixed list
2012-03-14 Error: Failed to open the relay log 'xxx' relay-log = /path/to/log/relay-bin relay-log-index = /path/to/log/
原创 Purge cache from nginx_proxy_cach
#!/bin/bash # # This file for purge cache which get error response # Build by leal.yang MMG # # 2012-03-28 00:12
原创 Haproxy hot reconfiguration script(reference haproxy document)
mv /etc/haproxy/config /etc/haproxy/config.old mv /var/run/haproxy.pid /var/run/haproxy.pid.old mv /etc/haproxy