VPS侦探论坛

 找回密码
 注册
查看: 5660|回复: 8

lnmp上的北京时间不对怎么弄,我已经搜索了但是不行

[复制链接]
发表于 2012-10-26 12:52:15 | 显示全部楼层 |阅读模式

lnmp上的北京时间不对怎么弄
在论坛里面搜了 说是会自动调整但是现在后台显示的时间还是相差20多分钟  discuz

当前服务器时间:2012-10-26 12:25:03 标准时间:2012-10-26 12:41:18
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2012-10-26 12:57:38 | 显示全部楼层


ntpdate -u pool.ntp.org 一下看看,如果过几天还不准就只能

crontab没隔一段时间再执行:ntpdate -u pool.ntp.org
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2012-10-26 23:28:47 | 显示全部楼层

crontab -e
*/30 * * * * ntpdate -u pool.ntp.org
30分钟执行一次。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2012-10-27 00:29:08 | 显示全部楼层

回复 2# 的帖子




返回结果  -bash: ntpdate: command not found
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2012-10-27 08:27:32 | 显示全部楼层

yum install ntp
或apt-get install ntpdate

军哥运维代购:http://shop63846532.taobao.com/

 楼主| 发表于 2012-10-28 00:02:49 | 显示全部楼层

回复 5# 的帖子


还是摸不着头脑


root@ovz-mater:~# apt-get install ntpdate
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  lockfile-progs
The following NEW packages will be installed:
  lockfile-progs ntpdate
0 upgraded, 2 newly installed, 0 to remove and 33 not upgraded.
Need to get 9628 B/84.1 kB of archives.
After this operation, 344 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Err http://ftp.debian.org/debian/ squeeze/main lockfile-progs i386 0.1.15
  404  Not Found
Get:1 ftp://ftp.mx.debian.org/debian/ stable/main lockfile-progs i386 0.1.15 [9628 B]
Err ftp://ftp.mx.debian.org/debian/ stable/main lockfile-progs i386 0.1.15
  Unable to fetch file, server said 'Failed to open file.  '
Failed to fetch ftp://ftp.mx.debian.org/debian/p ... ogs_0.1.15_i386.deb  Unable to fetch file, server said 'Failed to open file.  '
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
发表于 2012-10-28 08:05:19 | 显示全部楼层

系统源有问题,换个系统源
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2012-11-10 03:19:25 | 显示全部楼层

回复 7# 的帖子


依然有问题  时间还不对....

另外debian出现 yum: command not found 这个怎么弄

[ 本帖最后由 hilaona 于 2012-11-10 03:44 编辑 ]
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2012-11-10 09:01:09 | 显示全部楼层

debian肯定没yum
之前你没说centos还是debian肯定和你说2个系统的命令

军哥运维代购:http://shop63846532.taobao.com/

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-23 23:24 , Processed in 0.034642 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表