keepalived04:执行定制脚本

在MASTER,BACKUP切换后可以执行定制的脚本: 配置实例: ! Configuration File for keepalived global_defs { notification_email { oscersong007@gmail.com } notific...

2013/04/03 15:41
190
keepalived03:资源抢占问题

Keepalived构建高可用服务器,有MASTER,BACKUP之分,在MASTER主机宕掉之后,BACKUP主机会接替 所有的任务,但是当MASTER主机修复后,会抢占资源,这样就是不必要的切换 如何让MASTER恢复...

2013/04/03 15:05
131
keepalived02:监控节点资源

! Configuration File for keepalived global_defs { notification_email { oscersong007@gmail.com } notification_email_from keepalived@localhost smtp_server 127...

2013/04/03 14:18
67
keepalived01:双网卡服务器双机热备

keepalived双网卡服务器双机热备 环境: master: eth0(192.168.0.100/24) eth1(10.0.0.100/24) backup: eth0(192.168.0.200/24) eth1(10.0.0.200/24) 软件安装: 安装依赖: ...

2013/04/03 13:45
477
又一利器sendEmail

1.下载安装: wget http://caspian.dotconf.net/menu/Software/SendEmail/sendEmail-v1.56.tar.gz tar zxf sendEmail-v1.56.tar.gz cd sendEmail-v1.56/ cp sendEmail /bi...

2013/04/01 17:16
195
DeneHosts防止SSH暴力破解

下载DenyHosts-2.6.tar.gz (http://sourceforge.net/projects/denyhosts/?source=dlp) 安装: tar zxf DenyHosts-2.6.tar.gz cd DenyHosts-2.6/ python setup.py install 配置: cd /usr/...

2013/04/01 13:37
126
LVS三种工作模式测试脚本

1. NAT: #!/bin/bash VIP=192.168.0.111 RIP1=10.0.0.10 RIP2=10.0.0.20 case "$1" in start) echo "start LVS of DirectorServer NAT" echo "1" >/proc/sys/net/ipv4...

2013/03/31 23:13
352
linux fetion简单使用

[root@desktop18 lib]# rar e linuxso_20101113.rar Extracting from linuxso_20101113.rar Extracting libcrypto.so.4 OK Extracting libs...

2013/03/30 21:51
190
ftp自动登录脚本

#!/bin/bash #ftp自动下载 echo "open 192.168.0.76 user westos westos bin hash get passwd bye " | ftp -n #!/bin/bash #ftp的自动上传 echo "open 192.168.0.76 user westos westos bin...

2013/03/25 15:16
299
批量部署ssh私钥

#!/bin/bash # auto copy publick key to ssh server,but you must create the rsa public key first! # include a expect expect script # see the log file /tmp/test.log #批量部署...

2013/03/24 17:48
91
批量部署ssh私钥

#!/bin/bash # auto copy publick key to ssh server,but you must create the rsa public key first! # include a expect expect script # see the log file /tmp/test.log # see ...

2013/03/24 17:22
83
Linux C文件操作ls -R的实现

#include <stdio.h> #include <sys/stat.h> #include <fcntl.h> #include <errno.h> #include <unistd.h> #include <string.h> #include <dirent.h> int PrintDir(const char *pcPath, int i...

2013/03/20 11:52
854
Linux C链表实现的定时器(未完成)

/*    通过链表实现定时器,后台一个线程倒计时(遍历链表的节点),若一个节点的数到0,则采取一定的动作 */ #include"stdio.h" #include"pthread.h" #include"string.h" #include"stdlib...

2013/03/20 11:41
276
Linux C线程与信号简单示例

/* 一个线程写,一个线程读,通过信号来实现同步 */ #include"stdio.h" #include"pthread.h" #include"string.h" #include"semaphore.h" #define Success 0 #define Failure -1 char g_...

2013/03/20 11:35
69

没有更多内容

加载失败,请刷新页面