依序執行下列步驟
yum -y install tftp-server
chkconfig tftp on
chkconfig xinetd on
chmod 777 /tftpboot
/etc/init.d/xinetd start
常見問題:
TFTP: Error code 1: File not found
當把資料透過tftp上傳到Linux時會出現Error code 1: File not found的錯誤,此時只要先在/tftpboot目錄下用touch指令建立該檔案,並將該檔案存取權限設定為777即可。
touch config.text
chmod 777 config.text
參考資料:
http://www.question-defense.com/2008/11/13/linux-setup-tftp-server-on-centos