user command 意思是:root用户 在每天21:30 分执行ntpdate comamnd 同步到 cn.pool.ntp.org 这个时间池,并且将更新的时间写入到 ROM里保存。
备注:不要忘记开启服务啊! chkconfig ntpd --list (查看0~6个runlevel 是否按照阁下意愿开启或关闭 ntpd服务) chkconfig ntpd --level 35 on (开启runlevel 3和5的ntpd服务) chkconfig ntpd on (开启runlevel 2345的ntpd服务) chkconfig ntpd off (关闭所有runlevel的ntpd服务)
bash: chkconfig: command not found解决办法
[root@xuniji ~]# chkconfig bash: chkconfig: command not found [root@xuniji ~]# rpm -aq |grep chkconfig chkconfig-1.3.30.1-2 [root@xuniji ~]# export PATH=/sbin:$PATH [root@xuniji ~]# chkconfig chkconfig version 1.3.30.1 - Copyright (C) 1997-2000 Red Hat, Inc. This may be freely redistributed under the terms of the GNU Public License.