免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5590 | 回复: 4
打印 上一主题 下一主题

关于ftp时间与系统的时间差 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-05-02 09:30 |只看该作者 |倒序浏览
When I do “date” command, it is correct …
[ AS2 cronadm@as2 log] $ date
Thu Apr 30 17:43:45 PDT 2009
[ AS2 cronadm@as2 log] $

When I use ftp to put a file to server, the time is not correct …
150 Here comes the directory listing.
-rw-r--rw-    1 102      1000          276 May 01 00:43 bycm997.200904301743.snn
-rw-r--rw-    1 102      1000      1712417 May 01 00:42 hpN867.edi
226 Directory send OK.
150 bytes received in 0.00029 seconds (496.71 Kbytes/s)
ftp> pwd
257 "/u01/cyclone/cyc54/data/5106683500US/ediout"
ftp>

根据上面的情况可以发现,ftp的时间与系统时间相差8小时。
解决方案:
1. 如果是Proftpd,在proftpd.conf 加入 TimesGMT off ,重启proftpd即可。
2. 如果是vsftpd,在vsftpd.conf加入use_localtime=YES,重启vsftpd即可。

评分

参与人数 1可用积分 +3 收起 理由
yuhuohu + 3 我很赞同

查看全部评分

论坛徽章:
0
2 [报告]
发表于 2009-05-04 15:09 |只看该作者
原帖由 lvan6750 于 2009-5-2 09:30 发表
When I do “date” command, it is correct …
[ AS2 cronadm@as2 log] $ date
Thu Apr 30 17:43:45 PDT 2009
[ AS2 cronadm@as2 log] $

When I use ftp to put a file to server, the time is not corr ...


好帖子。学习。。。。。。。。。。。

论坛徽章:
0
3 [报告]
发表于 2009-05-04 21:41 |只看该作者
Good

论坛徽章:
0
4 [报告]
发表于 2011-03-04 15:06 |只看该作者
非常好,看完后搞定。感谢楼主

论坛徽章:
1
天秤座
日期:2013-10-23 13:20:42
5 [报告]
发表于 2011-03-04 17:08 |只看该作者
咋都是老帖了!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP