Loading... 1.date 查看当前时间 2.date -s yyyy-mm-dd hh:mi:ss 修改时间 3、安装ntpddate #centos,redhat系列 ``` yum install ntpdate ``` #debian,ubuntu系列 ``` apt install ntpdate ``` #archlinux系列 ``` pacman -S ntpdate ``` 4、通过ntpdate命令从时钟服务器同步 我们这里选用中国ntp服务器cn.pool.ntp.org来作为时钟同步的来源。为能正常访问到cn.pool.ntp.org,你的Linux系统应该能访问外网才行。 执行命令如下: ``` ntpdate -u cn.pool.ntp.org ``` 最后修改:2023 年 10 月 30 日 © 允许付费转载 打赏 赞赏作者 支付宝微信 赞 如果觉得我的文章对你有用,请随意赞赏