发布时间:2013-03-02 11:47:38
LVS1 192.168.2.245LVS2 192.168.2.250VIP 192.168.2.251rs1 192.168.2.192rs2 192.168.2.150###keepalived 在启动时不会检查配置文件语法##经测试,keepalived+lvs对后端的检测功能远远没有传说中的那么强,后端池中real机退出,大约到10秒才能正常功能,yum -y install wget openss.........【阅读全文】
发布时间:2013-02-24 01:51:01
facterecho '%_topdir /root/rpmworkdir' > ~/.rpmmacrosmkdir -p /root/rpmworkdir/{BUILD,SPECS,SOURCES,RPMS,SRPMS,BUILDROOT}cat /root/rpmworkdir/SPECS/facter.spec%define name facter%define version .........【阅读全文】
发布时间:2013-02-05 21:32:30
wget http://www.squid-cache.org/Versions/v2/2.6/squid-2.6.STABLE23.tar.bz2tar xvjf squid-2.6.STABLE23.tar.bz2cd squid-2.6.STABLE23./configure --prefix=/usr/local/squid --enable-gnuregex --enable-epoll --enable-ssl --enable-snmp --enable-storeio=ufs,aufs,d.........【阅读全文】
发布时间:2013-01-31 12:16:30
以本地为目的的包数据包 ----> mangle prerouting -------> nat prerouting -------> mangle input -------> filter input以本地为源的包数据包 -------> mangle output -------> nat output -------> filter output -------> mangle postrouting -------> nat postrouting 经过本地转.........【阅读全文】
发布时间:2013-01-14 11:49:24
director机器上cat ipv-director.sh#!/bin/bash#set -xvip=192.168.222.250rip1=192.168.222.129rip2=192.168.222.130port=80/sbin/ifconfig | grep eth0:1 > /dev/nullif [ $? -eq 0 ] then /sbin/route del $vip/sbin/ifconfig eth0:1 downfistart() {/sbin/ifconfig eth0:1 $v......【阅读全文】