第 16.4 节 时间服务
时间服务作用:
配置时区
同步时间
配置时区
使用
bsdconfig
设置时区。或命令行:
配置同步时间
设置启动 ntp 服务
设置 ntp 服务开机时候启动
编辑 ntp.conf
文件
ntp.conf
文件添加附加时钟服务器
服务
启动 ntp 服务
重启 ntp 服务
显示当前时间
手动同步时间(可选)
当时间相差较大时必须使用该命令,其他命令不会生效:
最后更新于