wocaosinima 发表于 2018-5-25 10:44:16

Linux下的Tftp服务

  操作系统:Redhat5.8
  

  该服务是基于xinetd的服务
  

  
  软件安装:
  tftp-0.49-2 客户端
  tftp-server-0.49-2 服务器端
  

  
  服务启动:
  
  方法一:
  
  #vim /etc/xinetd.d/tftp
  disable = no(yes关闭;no开启)
  
  方法二:
  
  #chkconfig tftp on
  #chkconfig tftp off
  
  #/etc/init.d/xinetd restart
  

  
  配置文件:/etc/xinetd.d/tftp
  

  
  打开上传功能:
  
  #vim /etc/xinetd.d/tftp
  server_args = -s /tftpboot -c
  
  -s:设置下载根目录
  /tftpboot下载根目录
  -c:上传功能
  

  
  应用举例
  ex:
  #tftp 192.168.1.250
  tftp> get b.txt
  tftp> put a.txt
  

  
  排错:
  无法上传?
  
  可能原因:
  #chmod 777 /tftpboot -R
  打开下载根目录写权限,查看防火墙和selinux设置
  
  

nomay 发表于 2018-5-25 10:57:21

实用。。。。。
页: [1]
查看完整版本: Linux下的Tftp服务