默认情况下,linux平台ftp,空闲会话超时时间为600s,以下为改变此设置过程
[quote]vi /etc/vsftpd/vsftpd.conf[/quote]
将idle_session_timeout改为6000s
[quote]# You may change the default value for timing out an idle session.
idle_session_timeout=6000[/quote]
重启服务
[quote]# service vsftpd restart
Shutting down vsftpd: [FAILED]
Starting vsftpd for vsftpd: [ OK ][/quote]
或者采用如下方法
[quote]# ps -ef|grep ftp
root 1975 1 0 Jul14 ? 00:00:00 /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf
root 20859 30596 0 13:14 pts/2 00:00:00 grep ftp
# kill -9 1975
# ps -ef|grep ftp
root 21305 30596 0 13:14 pts/2 00:00:00 grep ftp
# /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf
# ps -ef|grep ftp
root 21406 1 0 13:14 ? 00:00:00 /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf
root 21507 30596 0 13:14 pts/2 00:00:00 grep ftp[/quote]
[quote]vi /etc/vsftpd/vsftpd.conf[/quote]
将idle_session_timeout改为6000s
[quote]# You may change the default value for timing out an idle session.
idle_session_timeout=6000[/quote]
重启服务
[quote]# service vsftpd restart
Shutting down vsftpd: [FAILED]
Starting vsftpd for vsftpd: [ OK ][/quote]
或者采用如下方法
[quote]# ps -ef|grep ftp
root 1975 1 0 Jul14 ? 00:00:00 /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf
root 20859 30596 0 13:14 pts/2 00:00:00 grep ftp
# kill -9 1975
# ps -ef|grep ftp
root 21305 30596 0 13:14 pts/2 00:00:00 grep ftp
# /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf
# ps -ef|grep ftp
root 21406 1 0 13:14 ? 00:00:00 /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf
root 21507 30596 0 13:14 pts/2 00:00:00 grep ftp[/quote]
本文介绍如何在Linux平台上更改FTP服务的空闲会话超时时间,从默认的600秒调整到6000秒。通过编辑vsftpd配置文件,并重启服务实现设置变更。
2383

被折叠的 条评论
为什么被折叠?



