免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 2895 | 回复: 15
打印 上一主题 下一主题

[FTP] 安装激活proftpd的限速问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-11-04 11:20 |只看该作者 |倒序浏览
我用的是PROFTPD的1.2.10的版本。。
之前在安装时没考虑到限速问题。。
我安装时是./configure --prefix=/etc/proftpd
          make
          make install
在配置文件。proftpd.conf中加入有关上传和下载的RateReadBPS和RateWriteBPS的参数。。启动proftpd服务时会出现错误。。只有删除这些参数才可以正常运行。。。但我现在得将FTP限速。。。要怎么解决????
是否要在安装时激活哪个模块????
呵。。 为些头痛很久了。。大家帮个忙吧。。

[ 本帖最后由 sfz103 于 2005-11-4 17:41 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2005-11-04 14:06 |只看该作者
[quote="sfz103"]启动RESIN服务时会出现错误。[/quote]

跟resin有什么关系?报什么错误信息?

论坛徽章:
0
3 [报告]
发表于 2005-11-04 17:42 |只看该作者
呵呵。。打错了。。对不起哦。。

论坛徽章:
0
4 [报告]
发表于 2005-11-07 10:30 |只看该作者
默认就该支持这两个参数啊
启动时的错误信息是什么?

论坛徽章:
0
5 [报告]
发表于 2005-11-07 12:03 |只看该作者
[root@song ~]# service proftpd restart
Shutting down proftpd:                                     [FAILED]
Starting proftpd:  - Fatal: RateReadBPS: deprecated.  Use TransferRate instead on line 53 of '/etc/proftpd/etc/proftpd.conf'
                                                           [FAILED]



配置文件为:
# 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                        "ProFTPD Default Installation"
ServerType                        standalone
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

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

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

# Normally, we want files to be overwriteable.
AllowOverwrite                on

# Bar use of SITE CHMOD by default
<Limit SITE_CHMOD>
  DenyAll
</Limit>

# 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                        100
  MaxClientsPerHost             3
  RateReadBPS                        3000
   
  # We want 'welcome.msg' displayed at login, and '.message' displayed
  # in each newly chdired directory.
  DisplayLogin                        welcome.msg
  DisplayFirstChdir                .message

  # Limit WRITE everywhere in the anonymous chroot
  <Limit WRITE>
    DenyAll
  </Limit>
</Anonymous>


<Directory />
AllowOverwrite on
AllowStoreRestart on
#AllowForeignAddress on
<Limit All>
AllowAll
</Limit>
</Directory>

<Directory /var/ftp/study>
<Limit DELE RNFR RNTO RMD XRMD>
DenyUser study
</Limit>
</Directory>

<Directory /var/ftp>
<Limit CMD MKD RNFR DELE RMD RETR STOR READ WRITE DIRS NLST >
AllowUser admin
</Limit>
</Directory>

论坛徽章:
0
6 [报告]
发表于 2005-11-07 13:19 |只看该作者
Starting proftpd:  - Fatal: RateReadBPS: deprecated.  Use TransferRate instead on line 53 of

这是告诉你 RateReadBPS已经废弃了,用TransferRate 替换它
把你的配置文件改一下
TransferRate                        3000

论坛徽章:
0
7 [报告]
发表于 2005-11-07 16:35 |只看该作者
哦。。这样啊。。谢谢你了。。呵。。

论坛徽章:
0
8 [报告]
发表于 2005-11-07 16:41 |只看该作者
改了之后。。还是有错误啊。。
[root@song ~]# service proftpd start
Starting proftpd:  - Fatal: TransferRate: wrong number of parameters on line 53 of '/etc/proftpd/etc/proftpd.conf'
                                                           [失败]

论坛徽章:
0
9 [报告]
发表于 2005-11-07 16:46 |只看该作者

论坛徽章:
0
10 [报告]
发表于 2005-11-08 22:38 |只看该作者
谢谢了。。。只是我英文真的太不行了。。看不懂。。。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP