- 论坛徽章:
- 0
|
我新在一台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 那这各最大数限制在哪里设呢?
那位大虾不吝赐教一下,不胜感激!非常谢谢! |
|