iTOP4412-TFTP传输与NFS网络文件系统调试小结

1. tftp传输

1.1 tftp安装

$ sudo -

# apt-get install xinetd tftpd tftp

1.2 tftp配置

# vi /etc/xinetd.d/tftp

填写如下内容:

service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}
注意:配套文档指定路径为:server_args = -s /var/tftpboot/

1.3 创建tftp目录

# mkdir /tftpboot
# chmod 777 /tftpboot -R

1.4 重启tftp服务

# service xinetd restart

1.5 tftp测试

新建test,内容为hello,world

# vi /tftpboot/test

填入:hello,world

保存,退出!

打开一个新的终端窗口

# tftp 127.0.0.1

tftp> get test

Received 21 bytes in 0.1 seconds

tftp> quit

# cat test

# hello,world

1.6 使用tftp命令传输文件

开发板ip:192.168.1.230

ubuntu ip:192.168.1.12

通过以下命令完成ubuntu目录下/tftpboot文件test,到开发板根目录/的传输:

[root@iTOP-4412]# tftp -g -l test -r test 192.168.1.12

[root@iTOP-4412]# ls
bin      etc      linuxrc  proc     sys      tmp      var
dev      lib      mnt      sbin     test     usr
[root@iTOP-4412]# cat test
hello,world

1.7 遇到的问题:

(1)使用tftp命令get时提示: transfer timed out

解决办法:将原tftp共享路径/var/tftpboot/改为/tftpboot

 <

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

snaking616

你的鼓励是我最大的动力!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值