- 论坛徽章:
- 0
|
刚装好没有多久的,好像早几天还挺好的,用PORT模式。
现在开通了PASV,开放了50000~50005给PASV专用,结果发现proftpd的速度一直不稳定:
80k ~ 60 ~ 40 ~ 20 ~ 0 一路下降到零
然后又慢慢上升, 0 ~ 20 ~ 40 ~ 60 ~ 80,再重复这样的怪圈……
还时不时的断开连接,自动重连!
请高手指点。
附上我的配置文件。
-bash-3.1$ cat proftpd.conf | grep '^[^#]'
ServerName "TechYou FTP Server by Server-U 7.0.1"
ServerType standalone
DefaultServer on
ServerIdent off #服务器版本信息
UseReverseDNS off
IdentLookups off
Port 21
Umask 022
MaxInstances 30
TimeoutStalled 10
MaxClients 500 #最多允许500个用户在线
MaxClientsPerHost 1 "Sorry,do not use more than one connection for one user"
User proftp
Group proftp
DefaultRoot ~
DisplayLogin /usr/local/proftpd/confile/welcome.msg
AllowOverwrite on
AllowStoreRestart on
<Limit SITE_CHMOD>
AllowAll
</Limit>
PassivePorts 50000 50005
附二,版本和编译信息:
-bash-3.1$ /usr/local/proftpd/sbin/proftpd -V
Compile-time Settings:
Version: 1.3.1
Platform: LINUX
Built With:
configure --prefix=/usr/local/proftpd --with-modules=mod_sql:mod_sql_mysql:mod_quotatab:mod_quotatab_sql:mod_ratio --with-includes=/home/lamp/mysql5/include/mysql --with-libraries=/home/lamp/mysql5/lib/mysql --sysconfdir=/usr/local/proftpd/confile --localstatedir=/var --bindir=/usr/local/proftpd/bin --sbindir=/usr/local/proftpd/sbin --enable-dso --enable-openssl
CFLAGS: -O2 -Wall
LDFLAGS: -L$(top_srcdir)/lib
LIBS: -lsupp -lcrypt
Files:
Configuration File:
/usr/local/proftpd/confile/proftpd.conf
Pid File:
/var/proftpd.pid
Scoreboard File:
/var/proftpd/proftpd.scoreboard
Shared Module Directory:
/usr/local/proftpd/libexec
Features:
- Autoshadow support
- Controls support
+ curses support
- Developer support
+ DSO support
- IPv6 support
+ Largefile support
- Lastlog support
+ ncurses support
- NLS support
+ OpenSSL support
- POSIX ACL support
+ Shadow file support
+ Sendfile support
+ Trace support
Tunable Options:
PR_TUNABLE_BUFFER_SIZE = 1024
PR_TUNABLE_GLOBBING_MAX = 8
PR_TUNABLE_HASH_TABLE_SIZE = 40
PR_TUNABLE_NEW_POOL_SIZE = 512
PR_TUNABLE_RCVBUFSZ = 87380
PR_TUNABLE_SCOREBOARD_BUFFER_SIZE = 80
PR_TUNABLE_SCOREBOARD_SCRUB_TIMER = 30
PR_TUNABLE_SELECT_TIMEOUT = 30
PR_TUNABLE_SNDBUFSZ = 16384
PR_TUNABLE_TIMEOUTIDENT = 10
PR_TUNABLE_TIMEOUTIDLE = 600
PR_TUNABLE_TIMEOUTLINGER = 180
PR_TUNABLE_TIMEOUTLOGIN = 300
PR_TUNABLE_TIMEOUTNOXFER = 300
PR_TUNABLE_TIMEOUTSTALLED = 3600
PR_TUNABLE_XFER_BUFFER_SIZE = 16384
PR_TUNABLE_XFER_SCOREBOARD_UPDATES = 10
Thanks in advance! |
|