SHELL-检测本机当前用户是否为超级管理员
#!/bin/bash if [ $USER == 'root' ];then yum ‐y install vsftpd else echo '您不是管理员,没有权限安装软件' fi 检测本机当...
SHELL-for循环的使用
一、for嵌套 1.1、for嵌套if 案例:输出1-9,当输出5时停止输出 案例代码 #!/bin/bash # #Author: www.yunweidaohang.com #Created Time: #Release: #Description:输出1-9,当输出5时停止输出 fo...
常用负载均衡及高可用软件介绍-LVS-HA-KEEPALIVED
1、常见负载均衡 L4: tcp 负载均衡 LVSL4-L7 Haproxy 有图形界面L7:http nginx (1.9以后的版本也支持tcp负载...