免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: fang79
打印 上一主题 下一主题

用vsftp做了个数据服务器,但上传速度很慢,怎么回事? [复制链接]

论坛徽章:
0
11 [报告]
发表于 2004-10-06 09:46 |只看该作者

用vsftp做了个数据服务器,但上传速度很慢,怎么回事?

你用的是什么网卡?
交换机?
还有你的系统是你自己装的吗?什么版本的Linux ?
没有安装或者配置其它东西吗?

希望你早日找到答案,帮你顶!!

论坛徽章:
0
12 [报告]
发表于 2004-10-06 11:38 |只看该作者

用vsftp做了个数据服务器,但上传速度很慢,怎么回事?

一台比较早的普通pc.奔iii 700M的CPU,内存128M的.装的是linux9.0。是自己装的。因为不需要其他服务,所以其他什么东西都没改过,因为我也根本不会改

做这台服务器只是为了存其他人的数据,上传和下载快会很方便的.
但现在下载很快,感觉上和网卡之类的硬件应该关系不太大吧.那个硬盘是新买的高速的.
我对Linux了解也不多,但直观的感觉可能是在上传写入的时候,大概需要验证一下某些东西,造成速度慢。就比如检测一下上传用户的属性之类的。我也不知道啦,都是瞎想瞎说的。

论坛徽章:
0
13 [报告]
发表于 2004-10-06 12:17 |只看该作者

用vsftp做了个数据服务器,但上传速度很慢,怎么回事?

把你的vsftpd.conf配置文件贴出来看看

论坛徽章:
0
14 [报告]
发表于 2004-10-06 12:28 |只看该作者

用vsftp做了个数据服务器,但上传速度很慢,怎么回事?

#Example config file /etc/vsftpd.conf
#
# The default compiled in settings are very paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
#
# Allow anonymous FTP?
#anonymous_enable=YES
#anonymous_upload_enalbe=YES
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=022
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
#anon_upload_enable=YES
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
#anon_mkdir_write_enable=YES
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#/
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
#chown_uploads=YES
#chown_username=whoever
#
# You may override where the log file goes if you like. The default is shown
# below.
#xferlog_file=/var/log/vsftpd.log
#
# If you want, you can have your log file in standard ftpd xferlog format
xferlog_std_format=YES
#
# You may change the default value for timing out an idle session.
#idle_session_timeout=600
#
# You may change the default value for timing out a data connection.
#data_connection_timeout=120
#
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
#nopriv_user=ftpsecure
#
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
#async_abor_enable=YES
#
# By default the server will pretend to allow ASCII mode but in fact ignore
# the request. Turn on the below options to have the server actually do ASCII
# mangling on files when in ASCII mode.
# Beware that turning on ascii_download_enable enables malicious remote parties
# to consume your I/O resources, by issuing the command "SIZE /big/file" in
# ASCII mode.
# These ASCII options are split into upload and download because you may wish
# to enable ASCII uploads (to prevent uploaded scripts etc. from breaking),
# without the DoS risk of SIZE and ASCII downloads. ASCII mangling should be
# on the client anyway..
#ascii_upload_enable=YES
#ascii_download_enable=YES
#
# You may fully customise the login banner string:
#ftpd_banner=Welcome to blah FTP service.
#
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#deny_email_enable=YES
# (default follows)
#banned_email_file=/etc/vsftpd.banned_emails
#
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
chroot_list_enable=YES
# (default follows)
chroot_list_file=/etc/vsftpd/chroot_list

# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
#ls_recurse_enable=YES

pam_service_name=vsftpd
userlist_enable=YES
#enable for standalone mode
listen=YES
tcp_wrappers=YES

#the maxmun tranfer speed
local_max_rate=0


# the default port is 403
listen_port=403

# in 120 seconds there is no task to do, then the connect will be killed.
idle_session_timeout=600

# xiansu
#user_config_dif=/etc/vsftpd/userconf

论坛徽章:
0
15 [报告]
发表于 2004-10-06 12:31 |只看该作者

用vsftp做了个数据服务器,但上传速度很慢,怎么回事?

# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use.  It establishes a single server
# and a single anonymous login.  It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.

ServerName                      "Nano lab"
ServerType                      inetd
DefaultServer                   on

# Port 21 is the standard FTP port.
Port                            21

# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask                           022

# To prevent DoS attacks, set the maximum number of child processes
# to 30.  If you need to allow more than 30 concurrent connections
# at once, simply increase this value.  Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd).
MaxInstances                    30
MaxClients                      100   "------ full ------"
MaxClientsPerHost               5  # 5 ftp are allowed in one client
RateWriteBPS                    1000000
RateReadBPS                     1000000
AllowStoreRestart               on   # ji chuang

# Set the user and group under which the server will run.
User                            nobody
Group                           nobody


RootLogin                       off
RequireValidShell               off
# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
#DefaultRoot ~

# Normally, we want files to be overwriteable.
<Directory />;
  AllowOverwrite                on
</Directory>;

# A basic anonymous configuration, no upload directories.  If you do not
# want anonymous users, simply delete this entire <Anonymous>; section.
<Anonymous ~ftp>;
  User                          ftp
  Group                         ftp

  # We want clients to be able to login with "anonymous" as well as "ftp"
  UserAlias                     anonymous ftp

  # Limit the maximum number of anonymous logins
  MaxClients                    0

  # We want 'welcome.msg' displayed at login, and '.message' displayed
  # in each newly chdired directory.
  DisplayLogin                  welcome.msg
  # Limit WRITE everywhere in the anonymous chroot
  <Limit WRITE>;
    DenyAll
  </Limit>;
<splayFirstChdir             .message

论坛徽章:
0
16 [报告]
发表于 2004-10-06 12:32 |只看该作者

用vsftp做了个数据服务器,但上传速度很慢,怎么回事?

昨天后来也配了proftp,然后关闭了vsftp服务。但proftp的上传速度也是一样的。

论坛徽章:
0
17 [报告]
发表于 2004-10-06 14:30 |只看该作者

用vsftp做了个数据服务器,但上传速度很慢,怎么回事?

对于vsftpd.conf

local_max_rate=444444444一个比较大的数值单位是byte

论坛徽章:
0
18 [报告]
发表于 2004-10-06 14:31 |只看该作者

用vsftp做了个数据服务器,但上传速度很慢,怎么回事?

对于vsftpd.conf

local_max_rate=444444444一个比较大的数值单位是byte

论坛徽章:
0
19 [报告]
发表于 2004-10-06 15:24 |只看该作者

用vsftp做了个数据服务器,但上传速度很慢,怎么回事?

但是如果是0表示不限速的呀...
下载很快,应该不是这个参数设置的问题

论坛徽章:
0
20 [报告]
发表于 2004-10-06 21:10 |只看该作者

用vsftp做了个数据服务器,但上传速度很慢,怎么回事?

帮你顶
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP