免费注册 查看新帖 |

Chinaunix

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

如何在Solaris设置proftpd由inetd管理 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-09-21 11:16 |只看该作者 |倒序浏览
我新在一台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 206

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.26
>; 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 那这各最大数限制在哪里设呢?

然后我看到前面大虾的帖子里有这一段:
7. How do I run ProFTPD from inetd?

Find the line in /etc/inetd.conf that looks something like this:
ftp stream tcp nowait root in.ftpd in.ftpd
Replace it with:
ftp stream tcp nowait root in.proftpd in.proftpd
Then, find your inetd process in the process listing and send it the SIGHUP signal so that it
will rehash and reconfigure itself. You may also need to add in.ProFTPD to hosts.allow on your system.

我尝试了一下不行。那位大虾可有经验望不吝赐教!
另外再问一下:
用 netstat -an | grep 21
10.10.10.26.21       10.10.10.117.1270    16568      0 64240      0 FIN_WAIT_2
10.10.10.26.21       10.10.10.117.1273    17107      0 64240      0 FIN_WAIT_2
10.10.10.26.21       10.10.10.167.1663    16511      0 64240      0 FIN_WAIT_2

中 FIN_WAIT_2 表示什么意思?
我用lsof 看又看不到这个进程。why?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP