linux下ntp时间同步

linux下ntp时间同步

安装ntp /或者名字是ntpd
systemctl start ntp /ntpd
systemctl enable ntp /ntpd

timedatectl set-timezone GMT
timedatectl set-timezone Asia/Shanghai
timedatectl set-ntp yes