0040设置系统时间为中国时区并启用NTP同步

yum install ntp //安装ntp服务
systemctl enable ntpd //开机启动服务
systemctl start ntpd //启动服务
timedatectl set-timezone Asia/Shanghai //更改时区
timedatectl set-ntp yes //启用ntp同步
ntpq -p //同步时间

猜你喜欢

转载自www.cnblogs.com/linux777/p/9372971.html
今日推荐