- 论坛徽章:
- 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 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? |
|