RedHat Linux 9 下 TFTP 搭建

RedHat Linux 9 下 TFTP 搭建

TFTP是用来下载远程文件的最简单网络协议,基于UDP协议完成。
使用RedHat Linux 9中的第3张光盘。以下是root登录操作

(1)安装TFTP-server
# mount /mnt/cdrom
# cd /mnt/cdrom/RedHat/RPMS
# rpm -ivh tftp-*.i386.rpm
# cd ~
# umount /mnt/cdrom

(2)修改文件
# vi /etc/xinetd.d/tftp
service tftp
{
socket_type =dgram
protocol =udp
wait =yes
user =root
server =/usr/sbin/in.tftpd
server_args =-s /home/liuby/tftpboot -c # 修改 注:-s指定的目录,-c表示可以创建文件
disable =no # 修改
per_source =11
cps =100 2
flags =IPv4
}

(3)启动服务
建立TFTP Server 服务器
# mkdir -m 777 /home/liuby/tftpboot
# service xinetd restart

(4)在命令行下 setup 在system services中(或ntsysv)选择tftp,命令行lokkit关闭firewall

(5)重新启动TFTP
# service xinetd restart

(6)测试
# tftp 192.168.0.2
tftp>get
tftp>put
tftp>q

(7)目标板测试(以下目标板上操作)
假设服务器/home/liuby/tftpboot下有zImage,或交叉编译的应用程序helloworld.o等
# tftp 192.168.0.2
tftp>get helloworld.o
tftp>q
# chmod +x helloworld.o
# ./helloworld.o

(8)mpc8349板下载server(59.64.155.12)的hello.o文件
# tftp -g 59.64.155.12 -r hello.o
# chmod +x hello.o
# ./hello.o


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值