curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
    curl -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
    yum install vim wget bash-completion lrzsz nmap nc tree htop iftop net-tools -y


    chmod +x /etc/rc.d/rc.local
    systemctl disable firewalld.service
    sed -i ‘s#SELINUX=enforcing#SELINUX=disabled#g’ /etc/selinux/config
    sed -i ‘93s@GSSAPIAuthentication yes@GSSAPIAuthentication no@;129s@#UseDNS yes@UseDNS no@’ /etc/ssh/sshd_config
    systemctl restart sshd
    for serv in systemctl list-unit-files | grep enabled|awk '{print $1}';do systemctl disable $serv ;done
    for serv in autovt@.service crond.service getty@.service irqbalance.service kdump.service microcode.service rsyslog.service sshd.service sysstat.service systemd-readahead-collect.service systemd-readahead-drop.service systemd-readahead-replay.service tuned.service lvm2-lvmetad.socketlvm2-lvmpolld.socket default.target multi-user.target runlevel2.target runlevel3.target runlevel4.target ;do systemctl enable $serv;done

    cat>>/etc/security/limits.conf< soft nproc 65535
    hard nproc 65535
    hard nofile 65535
    soft nofile 65535
    EOF
    sed -i “s/ soft nproc 4096/# soft nproc 4096/g” /etc/security/limits.d/20-nproc.conf

    cat>>/etc/profile<export TMOUT=300
    HISTTIMEFORMAT=”<%F %T>:”
    HISTFILESIZE=2000
    HISTSIZE=2000
    EOF
    sed -i “s/umask 022/umask 027/“ /etc/profile
    source /etc/profile

    echo “*.err;auth.info /var/adm/messages” >>/etc/rsyslog.conf

    systemctl restart sshd.service