免费注册 查看新帖 |

Chinaunix

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

proftp怎么让inetd来管理? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-09-21 09:27 |只看该作者 |倒序浏览
我新在一台Solaris8机器上安装了proftp
问题1:
独立运行没有问题。然后我想把这个进程交给 inetd 来管理

首先 vi /usr/local/etc/proftpd.conf
ServerType                      inetd

然后 vi /etc/inetd.conf

ftp    stream  tcp6    nowait  root    /usr/sbin/in.ftpd       in.ftpd
改成了
#ftp    stream  tcp6    nowait  root    /usr/sbin/in.ftpd       in.ftpd
ftp    stream  tcp6    nowait  root    /usr/local/sbin/proftpd proftpd
然后重启了 inetd
kill -HUP 203

bash-2.03# netstat -an | grep 21
      *.21                 *.*                0      0 1024000      0 LISTEN
      *.21                              *.*                             0      0 1024000      0 LISTEN        

信息中:
      *.21                              *.*                             0      0 1024000      0 LISTEN     
很奇怪。默认的in.ftpd启动后没看到这条记录,proftpd standland 启动也没有这条记录。偏 inetd mode 有这条记录。

但是  :
C:\Documents and Settings\Administrator>;ftp 10.10.10.206
>; ftp: connect :连接被拒绝
ftp>; bye

单独运行  /usr/local/sbin/proftpd 是没有问题的,应该是 inetd.conf 里写得不对,该怎么写呢?
问题2:
另外关于允许的Ftp的连接数是在哪里设的?
请看:
# 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
这段,我现在设的是 inetd mode 那这各最大数限制在哪里设呢?

那位大虾不吝赐教一下,不胜感激!非常谢谢!

论坛徽章:
0
2 [报告]
发表于 2004-09-21 22:26 |只看该作者

proftp怎么让inetd来管理?

你的情况很奇怪,/etc/inetd.conf我看不出甚么问题,如果要限制最大连接数的话可以用ndd -set /dev/tcp tcp_conn_req_max_q N 来设置,我也不知道在inetd.conf中如何作限制,知道的朋友请不吝赐教!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP