Linux Server Vsftp Service at the time of the machine and the time after the FTP connection is inconsistent resolution
The time on this machine
[email protected] ctrl]$ LL
Total 112
-rw-r--r--1 wxbftp wxbftp 163 Jan 6 05:54 Miliao_20170106_103e2c8fb4d649d1b607a07426112384.json
-rw-r--r--1 wxbftp wxbftp 2 Jan 6 05:54 MILIAO_20170106_103e2c8fb4d649d1b607a07426112384.json.ok
-rw-r--r--1 wxbftp wxbftp 163 Jan 6 01:09 Miliao_20170106_173c0c2a3b8d4f23b8c53bb255f78527.json
-rw-r--r--1 wxbftp wxbftp 2 Jan 6 01:09 MILIAO_20170106_173c0c2a3b8d4f23b8c53bb255f78527.json.ok
FTP connection time with other servers
Ftp> ls
227 Entering Passive Mode (10,139,44,17,83,96).
Here comes the directory listing.
-rw-r--r--1 10001 10001 163 Jan 21:54 Miliao_20170106_103e2c8fb4d649d1b607a07426112384.json
-rw-r--r--1 10001 10001 2 Jan 21:54 MILIAO_20170106_103e2c8fb4d649d1b607a07426112384.json.ok
-rw-r--r--1 10001 10001 163 Jan 17:09 Miliao_20170106_173c0c2a3b8d4f23b8c53bb255f78527.json
-rw-r--r--1 10001 10001 2 Jan 17:09 MILIAO_20170106_173c0c2a3b8d4f23b8c53bb255f78527.json.ok
Modify vi/etc/vsftp/vaftp.conf
Last line Join
Use_localtime=yes
Save Exit
Restart vsftp
View Time
Ftp> ls
227 Entering Passive Mode (10,139,44,17,45,81).
Here comes the directory listing.
-rw-r--r--1 10001 10001 163 Jan 05:54 Miliao_20170106_103e2c8fb4d649d1b607a07426112384.json
-rw-r--r--1 10001 10001 2 Jan 05:54 MILIAO_20170106_103e2c8fb4d649d1b607a07426112384.json.ok
-rw-r--r--1 10001 10001 163 Jan 01:09 Miliao_20170106_173c0c2a3b8d4f23b8c53bb255f78527.json
-rw-r--r--1 10001 10001 2 Jan 01:09 MILIAO_20170106_173c0c2a3b8d4f23b8c53bb255f78527.json.ok
That would be good.
This article is from the "10969650" blog, please be sure to keep this source http://10979650.blog.51cto.com/10969650/1889815
Linux Server Vsftp Service at the time of the machine and the time after the FTP connection is inconsistent resolution