***********使用tftpd方式,由openbsd-inetd自動啟動服務***********
sudo apt-get install tftpd tftp openbsd-inetd
sudo vi /etc/inetd.conf
tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /home/yq/work/tftpboot
sudo /etc/init.d/openbsd-inetd restart
檢視69端口是否有打開,使用指令netstat -an |more
傳回udp 0 0 0.0.0.0:69 0.0.0.0:* 即可
********使用tftpd的方式,由xinetd自動啟動服務(在ubuntu中xinetd極不穩定,不推薦)********
//sudo apt-get install tftp tftpd
sudo vi /etc/xinetd.d/tftpd
service tftp
{
disable = no
socket_type = dgram
wait = no
user = root
protocol = udp
server = /usr/sbin/in.tftpd
server_args = -s /home/yq/work/tftpboot
log_on_success = PID HOST DURATION
log_on_failure = HOST
}
sudo /etc/init.d/xinetd restart