Loading

linux 使用systemd-timesyncd进行ntp校时

1、修改配置文件/etc/systemd/timesyncd.confNTP=ntp服务器地址
2、重新加载配置:sudo systemctl daemon-reload
3、重启systemd-timesyncdsudo systemctl restart systemd-timesyncd
4、设置systemd-timesyncd开机自启:sudo systemctl enable systemd-timesyncd

posted @ 2024-05-20 11:10  IamHzc  阅读(394)  评论(0编辑  收藏  举报