1、fc10系统没有自带tftp服务和客户端程序,所以应该首先安装:
yum install tftp tftp-server
2、开启tftp服务:
在终端输入setup进入系统设置工具,选中系统服务中tftp,去掉ipchains和iptables两项服务(即去掉它们前面的*号)
3、编辑/etc/xinet.d/tftp文件:
###
## -s 参数指定chroot
## -c 参数指定tftp可以创建文件
server_args= -s /tftpboot -c
disabled=no
4、创建tftpboot文件夹
mkdir /tftpboot
chmod 777 /tftpboot
5、重启tftp服务
service xinetd restart
6、有时候selinux会阻止tftp正常运行,此时运行
setenforce 0
7、测试tftp命令
tftp 127.0.0.1
tftp> put 1.txt //上传文件
tftp> get 1.txt //下载文件
tftp> h //帮助
tftp-hpa 0.49
Commands may be abbreviated. Commands are:
connect connect to remote tftp
mode set file transfer mode
put send file
get receive file
quit exit tftp
verbose toggle verbose mode
trace toggle packet tracing
literal toggle literal mode, ignore ':' in file name
status show current status
binary set mode to octet
ascii set mode to netascii
rexmt set per-packet transmission timeout
timeout set total retransmission timeout
? print help information
help print help information
tftp> q //退出
fc10下tftp服务的配置
最新推荐文章于 2021-05-16 12:27:18 发布