使用源码先安装keepalived 1.2.7cd /usr/local/srcwget http://www.keepalived.org/software/keepalived-1.2.7.tar.gztar zxf keepalived-1.2.7.tar.gz cd keepalived-1.2.7./con
#!/usr/bin/expect -f set timeout 15 #设置交互式操作的最大超时 s set host 192.168.1.50 #设置变量 host set name hoho #设置变量 name set password gogogle #设置变量 password spawn ssh $name@$host # #spa
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号