摘要:
#!/bin/bash! rpm -qa |grep -q net-tools > /dev/null && yum -y install net-tools path=/etc/sysconfig/network-scripts/ifcfg-$1 ip=`ifconfig $1 |grep ine 阅读全文
摘要:
#!/bin/bash yum -y install wget #更换阿里源 下载epel源 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup wget -O /etc/yum.repos.d/ 阅读全文