摘要:
###字颜色:30—–37 echo -e "\033[30m黑色字\033[0m" echo -e "\033[31m红色字\033[0m" echo -e "\033[32m绿色字\033[0m" echo -e "\033[33m黄色字\033[0m" echo -e "\033[34m蓝色字 阅读全文
摘要:
1、阿里源 wget http://mirrors.aliyun.com/repo/Centos-7.repo 2、网易源 wget http://mirrors.163.com/.help/CentOS7-Base-163.repo 3、清华源 https://mirrors.tuna.tsing 阅读全文
摘要:
1.ntp.sh #!/bin/bash if [ -z $1 ];then echo "Usage: sh $0 lunan|gaoxin|..." exit fi PWD=$1 for host in `cat /ntp/ntptool/iplist/${PWD}` do { echo "bef 阅读全文
摘要:
#/bin/bash mem=`free -g | awk /Mem/ | awk '{print $2}'` cpu_count=`cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l` cpu_cores=`cat /proc/cpui 阅读全文
摘要:
#!/bin/bash pingok(){ echo -ne "\033[32m$1\t\033[0m" } pingfail(){ echo -ne "\033[31m$1\t\033[0m" } read -p "请输入地址段:" IPP read -p "请输入起始IP:" IPS read 阅读全文
摘要:
一、安装ansible 在线安装 # 安装epel源 yum install -y epel-release # 安装ansible yum install -y ansible ##二、配置文件 ###1、ansible.cfg [defaults] #inventory = /etc/ansib 阅读全文