您的位置:首页 > 编程语言 > PHP开发

设置ntpdate服务开机启动校验时间

2016-11-02 10:20 447 查看
一般linux都预装了 ntpdate 服务。
如果没有安装,参考博文:http://blog.csdn.net/zengmingen/article/details/52913486

启动设置
1、检查系统服务里有没有ntpdate
使用命令:chkconfig --list



2、设置开机启动
chkconfig 的命令详见:http://blog.csdn.net/zengmingen/article/details/53005062

使用命令:chkconfig --level 12345 ntpdate on
0,6一般不使用。
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)

id:3:initdefault:

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: