网站首页 > 开源技术 正文
1.安装TFTP服务:
#yum install tftp-server
?2.安装Xinetd服务,TFTP服务是通过xintd运行的,所以需要安装Xinetd
#yum install xinetd
?3.配置编辑vim /etc/xinetd.d/tftp文件,?
修改下表中的两个地方:server_args为你自己的TFTPBOOT目录,即FTP文件的根目录;缺省情况下,是禁用TFTP服务的,所以把disable的值改为no。
# default: off
?# description: The tftp server serves files using the trivial file transfer \
?# protocol. The tftp protocol is often used to boot diskless \
?# workstations, download configuration files to network-aware printers, \
?# and to start the installation process for some operating systems.
?service tftp
?{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /home/tftpboot? -c
disable = no?
per_source = 11
cps = 100 2
flags = IPv4}
4.设置TFTPBOOT的访问权限: #chmod 777 /home/tftpboot
5.激活Xinetd和Xinetd
#chkconfig tftp on
#chkconfig xinetd on
# service xinetd start
6.测试
#tftp 192.168.65.200
tftp> ?put
tftp> ?get
tftp> ?q
可能出现的问题
1.出现TFTP error: 'Permission denied' (0)的解决
这个是由于selinux机制引起的不是文件夹的权限问题。
所以vi /etc/sysconfig/selinux 修改为:SELINUX=permissive
如果不想重启系统,执行:
sudo setenforce 0
2.如果上传文件出现:tftp: server error: (1) File not found
解决方法:在/etc/xinetd.d/tftp文件server_args的-s选项后面添加-c
执行service xinetd restart成功。
3.本地测试tftp出现command not found,可能是安装有问题,重新安装一般都会解决。
猜你喜欢
- 2024-11-06 Next server设置(next replace)
- 2024-11-06 抖音二面:计算机网络-应用层(抖音20钻是多少人民币)
- 2024-11-06 超棒的TFTP服务器Transfer for Mac版
- 2024-11-06 Cisco 路由器结构(cisco路由器配置接口)
- 2024-11-06 Linux系统基础指令(六)——tftp命令
- 2024-11-06 干货!思科网络工程师的网络排错笔记(上集)
- 2024-11-06 「python」3行代码搭建TFTP服务器
- 2024-11-06 tftp命令使用详解(tftp工具怎么用)
- 2024-11-06 网络小白快收下这份FTP与TFTP原理与配置,简单易懂,建议收藏
- 2024-11-06 麒麟服务器操作系统安装TFTP服务(麒麟ftp客户端)
你 发表评论:
欢迎- 最近发表
- 标签列表
-
- jdk (81)
- putty (66)
- rufus (78)
- 内网穿透 (89)
- okhttp (70)
- powertoys (74)
- windowsterminal (81)
- netcat (65)
- ghostscript (65)
- veracrypt (65)
- asp.netcore (70)
- wrk (67)
- aspose.words (80)
- itk (80)
- ajaxfileupload.js (66)
- sqlhelper (67)
- express.js (67)
- phpmailer (67)
- xjar (70)
- redisclient (78)
- wakeonlan (66)
- tinygo (85)
- startbbs (72)
- webftp (82)
- vsvim (79)
本文暂时没有评论,来添加一个吧(●'◡'●)