close

CentOS tftp setup

1. yum install xinetd

2. chkconfig xinetd on

3. yum install tftp-server

4. chkconfig tftp on

5. edit /etc/xinetd.d/tftp
 
vim /etc/xinetd.d/tftp
修改內容如下
service tftp
{
       socket_type     = dgram
       protocol        = udp
       wait            = yes
       user            = root
       server          = /usr/sbin/in.tftpd
       server_args     = -s /home/tftpboot
       disable         = no
       per_source      = 11
       cps             = 100 2
       flags           = IPv4
}

6. service xinetd restart
$cd /etc/init.d
/etc/init.d$ xinetd stop
/etc/init.d$ xinetd start 

7. checking TFTP

 

ARM板上,從Server端/home/tftpboot/下 ,取得ABC.txt檔案

 

tftp -g -r ABC.txt 172.17.X.X  

 
(注意tftpboot資料夾檔案的權限)
 $ mkdir /home/tftpboot
$ chmod -R 777 /home/tftpboot
$ chown -R nobody /tftpboot

 



arrow
arrow
    全站熱搜

    rodney2009 發表在 痞客邦 留言(0) 人氣()