溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點(diǎn)擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

關(guān)于ftp下顯示的時(shí)間和系統(tǒng)時(shí)間不一致的解決方法

發(fā)布時(shí)間:2020-06-19 08:23:03 來源:網(wǎng)絡(luò) 閱讀:2660 作者:IT熊貓 欄目:網(wǎng)絡(luò)安全

也許有的朋友會(huì)發(fā)現(xiàn),當(dāng)FTP服務(wù)器搭建好以后,顯示的時(shí)間卻是GMT時(shí)間,這時(shí)大家可以參考我下面的方法進(jìn)行修改。

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鍵,執(zhí)行下面的保存命令

:wq

存盤后,重啟vsftpd:

service vsftpd restart


2. proftpd修改方法:

找到

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

或者

vi /etc/proftpd.conf

找到

UseReverseDNS off

下面加入(不使用GMT時(shí)間):

TimesGMT off

按ESC鍵,執(zhí)行下面的保存命令

:wq

存盤后,重啟proftpd

service proftpd restart


根據(jù)此方法修改后,F(xiàn)TP文件就能顯示當(dāng)?shù)貢r(shí)間了~


向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI