sed -i '/ONBOOT/s/no/yes/' /etc/sysconfig/network-scripts/ifcfg-ens33
systemctl restart network
cd /etc/yum.repos.d mkdir repo_bak mv *.repo repo_bak
curl -O http://mirrors.aliyun.com/repo/Centos-7.repo curl -O http://mirrors.aliyun.com/repo/epel-7.repo curl -O http://mirrors.aliyun.com/repo/epel-testing.repo
yum clean all && yum makecache
systemctl stop firewalld.service systemctl disable firewalld.service
sed -i '/SELINUX/s/enforcing/disabled/' /etc/selinux/config
yum install -y zsh git
sh -c "$(wget -O- https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
vim ~/.zshrc
yum install -y man-pages-zh-CN
yum install -y ntpdate echo ntpdate -u ntp.api.bz >>/etc/rc.local
sed -i '/#ClientAlive/s/#//' /etc/ssh/sshd_config systemctl restart sshd
ClientAliveInterval
會話超時時間,即爲一次
ClientAliveCountMax
容許超時次數linux