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
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 start7. 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
全站熱搜
留言列表