https://gitee.com/Outsrkem/shellScript/raw/master/initializeCentos7.sh
# CentOS-7.4.1708 rm -rf /etc/yum.repos.d/* curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo yum clean all && yum makecache echo "export PS1='\[\e[1;32m\][\u@\h \W]\\$ \[\e[0m\]'" >> /etc/bashrc echo "export TIME_STYLE='+%Y-%m-%d %H:%M:%S'" >> /etc/bashrc echo "export HISTTIMEFORMAT='%F %T '" >> /etc/profile sed -i "s/^#UseDNS.*/UseDNS no/g" /etc/ssh/sshd_config sed -i "s/SELINUX=.*/SELINUX=disabled/g" /etc/selinux/config systemctl stop firewalld && systemctl disable firewalld && rpm -e --nodeps firewalld systemctl disable chronyd systemctl stop chronyd yum -y install iptables-services systemctl start iptables && iptables -F && service iptables save yum -y install lrzsz net-tools bash-completion vim tree wget dos2unix ntpdate unzip psmisc kernel-tools tcpdump cat >> ~/.vimrc <<EOF set ts=4 set expandtab set paste EOF