关于ftp下显示的时间和系统时间不一致的解决方法

发布时间:2020-06-19 08:23:03 作者:IT熊猫
来源:网络 阅读:2624

也许有的朋友会发现,当FTP服务器搭建好以后,显示的时间却是GMT时间,这时大家可以参考我下面的方法进行修改。

1. VSFTP修改方法:
vi /etc/vsftpd/vsftpd.conf

在最后加入一行:

# This directive enables listening on IPv6 sockets. By default, listening
# on the IPv6 "any" address (::) will accept connections from both IPv6
# and IPv4 clients. It is not necessary to listen on *both* IPv4 and IPv6
# sockets. If you want that (perhaps because you want to listen on specific
# addresses) then you must run two copies of vsftpd with two configuration
# files.
# Make sure, that one of the listen options is commented !!
.......
use_localtime=YES

按ESC键,执行下面的保存命令

:wq

存盘后,重启vsftpd:

service vsftpd restart


2. proftpd修改方法:

找到

vi /usr/local/proftpd/etc/proftpd.conf

或者

vi /etc/proftpd.conf

找到

UseReverseDNS off

下面加入(不使用GMT时间):

TimesGMT off

按ESC键,执行下面的保存命令

:wq

存盘后,重启proftpd

service proftpd restart


根据此方法修改后,FTP文件就能显示当地时间了~


推荐阅读:
  1. html中显示当前系统时间代码
  2. linux查看和修改系统时间的方法

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

ftp 本地时间 一致

上一篇:WDS部署

下一篇:项目实践:搜索对比测试工具

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》