The solution to the inconsistency between the time displayed under ftp and the system time
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.