redhat9下搭建tftp
来源:互联网 发布:java程序设计课程简介 编辑:程序博客网 时间:2024/06/05 15:18
转自http://www.linuxidc.com/Linux/2010-08/27613.htm,并解决了其搭建过程出现的错误
使用RedHat Linux 9中的第3张光盘。以下是root登录操作
(1)安装TFTP-server
# mount /mnt/cdrom
# cd /mnt/cdrom/RedHat/RPMS
# rpm -ivh tftp-0.32.i386.rpm
# rpm -ivh tftp-server-0.32-4.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
{
出错:bash: service: command not found
解决方法:原因是这样的,service命令是要用ROOT用户来执行的,而出错的用户是用su root切换到ROOT用户下,这个命令没有也不会把环境带过去!用如下命令就不会出错了:
su – root
注意:su 后面是一个空格,横线后面也是一个空格,千万不能省略.
}
(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
+++++++++++++++++++++++++++++++++++++++++++++++
- redhat9下搭建tftp
- redhat9下搭建tftp
- redhat9下搭建tftp
- RedHat9.0下tftp服务的安装及使用
- linux下搭建tftp
- ubuntu下搭建tftp
- ubuntu10 下 TFTP搭建
- ubuntu下搭建tftp
- RedHat9安装tftp服务
- linux下tftp服务搭建
- ubuntu下搭建tftp服务
- UBUNTU下TFTP服务器搭建
- UBUNTU下TFTP服务器搭建
- ubuntu下搭建tftp服务器
- Ubuntu下tftp服务搭建
- Ubuntu下tftp服务搭建
- ubuntu下搭建tftp服务器
- Ubuntu下tftp服务搭建
- 【免费】TUP首开云计算沙龙 带您亲历互联网架构实战
- PHP的Socket函数参考
- 解析Flex3与Flex4之间的区别
- 基于可重用可编辑的网页视图概念
- js 中switch用法
- redhat9下搭建tftp
- redhat9下搭建tftp
- 内存泄露检测工具 Visual Leak Detector for Visual C++ 2008/2010
- redhat9下搭建tftp
- linux命令终极系列之(grep)
- 我的json获取数据实例,直接运行就可以看到了
- 我的免费软件列表(持续更新中)
- 测试网站负载能力工具
- run scrum code