因为个人需要,整理的
Centos
1.关闭selinux
$ setenforce 0
$ vi /etc/sysconfig/selinux
SELINUX=disabled
2.禁用firewalld
$ systemctl disable firewalld
$ systemctl stop firewalld
3.安装常用工具
$ yum -y install epel-release
$ yum -y install net-tools vim wget lrzsz unzip ntp ntpdate
4.同步时间
$ 手动同步
$ ntpdate pool.ntp.org
$ 自动同步
$ vim /etc/ntp.conf
末尾新增加一行
server pool.ntp.org iburst
$ 开机启动
$ systemctl enable ntpd
$ systemctl start ntpd