Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The solution to the inconsistency between the time displayed under ftp and the system time

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

Maybe some friends will find that when the FTP server is set up, the display time is GMT time, so you can refer to my method below to modify it.

1. VSFTP modification method: vi / etc/vsftpd/vsftpd.conf

Add a line at the end:

# 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

Press the ESC key to execute the following save command

: wq

After saving the disk, restart vsftpd:

Service vsftpd restart

2. Proftpd modification method:

find

Vi / usr/local/proftpd/etc/proftpd.conf

Or

Vi / etc/proftpd.conf

find

UseReverseDNS off

Add the following (do not use GMT time):

TimesGMT off

Press the ESC key to execute the following save command

: wq

Restart proftpd after saving the disk

Service proftpd restart

After modification according to this method, the FTP file can show the local time.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report