WDlinux官方论坛's Archiver

admin 发表于 2012-8-22 19:44

wdcp后台设置服务器的时间自动同步

有的时候,因为主板或机器本身的原因,服务器的系统时间,会走着走着就变慢了此时,不得不SSH连到服务器上去修改

在wdcp2.5开始,增加了一个自动同步时间的功能设置
该功能,默认是没有启用的

如何启用,在系统设置 > 计划任务 里添加一个定时任务即可

如下
[attach]1845[/attach]

以上的定时时间是每天的零点5分钟时,自动同步一次系统时间

这样添加后,就可以了,以后会每天定时同步,以后不用理了

testu 发表于 2013-1-5 20:41

/www/wdlinux/tools/wdcp_ntp.sh
文件不存在

admin 发表于 2013-1-6 12:50

是最新版本吗

fatmonkey 发表于 2013-1-9 00:23

[tools]# wdcp_ntp.sh
-bash: wdcp_ntp.sh: command not found

admin 发表于 2013-1-9 11:18

[b]回复 [url=http://www.wdlinux.cn/bbs/redirect.php?goto=findpost&pid=17859&ptid=3351]4#[/url] [i]fatmonkey[/i] [/b]


   要完整路径

fatmonkey 发表于 2013-1-13 00:23

[quote]回复  fatmonkey


   要完整路径
[size=2][color=#999999]admin 发表于 2013-1-9 11:18[/color] [url=http://www.wdlinux.cn/bbs/redirect.php?goto=findpost&pid=17866&ptid=3351][img]http://www.wdlinux.cn/bbs/images/common/back.gif[/img][/url][/size][/quote]


   改完整路径设置好了。但服务器时间与标准时间总差总四分钟,不知道是我设置问题,还是新浪时间的问题了。[align=center][attach]2356[/attach]
[/align]

admin 发表于 2013-1-13 13:14

这么奇怪

lz4261 发表于 2013-1-22 16:21

你好,我服务器时间是正常的,但是在wdcp后台的时间同步里面,是UTC区,正常情况下应该是UTC+8区吧,请问应该怎么修改呢?

engineerlzk 发表于 2013-4-20 20:56

[i=s] 本帖最后由 engineerlzk 于 2013-4-20 20:58 编辑 [/i]

我的服务器时间总是比北京时间快8个小时,先试哈自动同步行不行(自动同步完成时间依然未变,还是快8个小时,不知为何?)

fatmonkey 发表于 2013-4-27 22:05

执行时间较准出现以下提示,是何原因?


#sh /www/wdlinux/tools/wdcp_ntp.sh

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.ustc.edu.cn
* extras: centos.ustc.edu.cn
* rpmforge: ftp.riken.jp
* updates: centos.ustc.edu.cn
Setting up Install Process
Package ntp-4.2.4p8-3.el6.centos.i686 already installed and latest version
Nothing to do
27 Apr 21:38:01 ntpdate[6580]: sendto(218.30.114.84): Operation not permitted
27 Apr 21:38:01 ntpdate[6580]: sendto(221.179.175.73): Operation not permitted
27 Apr 21:38:02 ntpdate[6580]: sendto(121.194.0.48): Operation not permitted
27 Apr 21:38:02 ntpdate[6580]: sendto(218.30.114.84): Operation not permitted
27 Apr 21:38:02 ntpdate[6580]: sendto(221.179.175.73): Operation not permitted
27 Apr 21:38:03 ntpdate[6580]: sendto(121.194.0.48): Operation not permitted
27 Apr 21:38:03 ntpdate[6580]: sendto(218.30.114.84): Operation not permitted
27 Apr 21:38:03 ntpdate[6580]: sendto(221.179.175.73): Operation not permitted
27 Apr 21:38:04 ntpdate[6580]: sendto(121.194.0.48): Operation not permitted
27 Apr 21:38:04 ntpdate[6580]: sendto(218.30.114.84): Operation not permitted
27 Apr 21:38:04 ntpdate[6580]: sendto(221.179.175.73): Operation not permitted
27 Apr 21:38:05 ntpdate[6580]: sendto(121.194.0.48): Operation not permitted
27 Apr 21:38:06 ntpdate[6580]: no server suitable for synchronization found

admin 发表于 2013-4-28 16:31

系统限制了,是openvz的系统?

colloq168 发表于 2013-7-23 00:15

/www/wdlinux/tools/wdcp_ntp.sh  在ssh里面可以使用   在wdcp里面自动时间  是没有效果的   当前版本: wdcp_v2.5.7

cheyeweimian 发表于 2013-8-8 13:38

怎么启动计划任务呢?

bjjdwx 发表于 2014-1-17 11:36

**** 作者被禁止或删除 内容自动屏蔽 ****

henglimin 发表于 2014-5-30 19:43

/www/wdlinux/tools/wdcp_ntp.sh

穹风 发表于 2014-6-9 12:55

日志显示时间同步成功,但是时间时间还没有同步,每天都要要手动同步时间

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.