CentOS系统安装后配置

yum update -y
yum install -y epel-release
yum install -y vim net-tools htop
cat >>/etc/crontab<<EOF
*/1 * * * * root echo "nameserver 8.8.4.4" > /etc/resolv.conf; echo "nameserver 1.0.0.1" >> /etc/resolv.conf;
EOF
systemctl restart crond

tail -f /var/log/cron