root@ch-Founder-PC:~/inetutils-1.9.4/src# ./inetd -d
Using pid-file at "/var/run/inetd.pid".
/etc/inetd.conf:32: ADD : *:tftp proto=udp, wait=1, max=0, user=nobody group= builtin=no server=/usr/sbin/tcpd
registered /usr/sbin/tcpd on 4
inetd: /etc/inetd.d, No such file or directory
someone wants tftp
+ Closing from 4
4549 execl /usr/sbin/tcpd
4549 reaped, status 0
restored tftp, fd 4
someone wants tftp
+ Closing from 4
Using pid-file at "/var/run/inetd.pid".
/etc/inetd.conf:32: ADD : *:tftp proto=udp, wait=1, max=0, user=nobody group= builtin=no server=/usr/sbin/tcpd
registered /usr/sbin/tcpd on 4
inetd: /etc/inetd.d, No such file or directory
someone wants tftp
+ Closing from 4
4549 execl /usr/sbin/tcpd
4549 reaped, status 0
restored tftp, fd 4
someone wants tftp
+ Closing from 4
下面是inetd.conf的文件内容
tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/tftpd -l /home/ch/tftpboot
someone wants tftp
+ Closing from 4
4549 execl /usr/sbin/tcpd
4549 reaped, status 0
restored tftp, fd 4
对应的另一个窗口的内容是:
root@ch-Founder-PC:~# tftp 172.22.24.150
tftp> get test
Received 22 bytes in 0.0 seconds
tftp> q
root@ch-Founder-PC:~#