网络
开启网卡
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
防火墙和selinux选项
关闭防火墙
systemctl stop firewalld.service
systemctl disable firewalld.service
关闭selinux
sed -i '/SELINUX/s/enforcing/disabled/' /etc/selinux/config
oh my zsh
安装依赖软件
yum install -y zsh git
基本安装
sh -c "$(wget -O- https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
主题和插件选择
vim ~/.zshrc
中文man手册
yum install -y man-pages-zh-CN
时间同步
yum install -y ntpdate
echo ntpdate -u ntp.api.bz >>/etc/rc.local