centos 部署日志
普通用户切换root
su root
同步时间
yum -y install ntpdate
ntpdate ntp1.aliyun.com
同步时区
timedatectl set-timezone Asia/Shanghai
普通用户切换root
su root
同步时间
yum -y install ntpdate
ntpdate ntp1.aliyun.com
同步时区
timedatectl set-timezone Asia/Shanghai