Fedora22怎么配置tftp服务器

  介绍

本篇内容主要讲解“Fedora22怎么配置tftp服务器”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“Fedora22怎么配置tftp服务器”吧!

1,查看是否安装tftp

 rpm  -qa  |, grep  tftp 

注:什么都没有查询出来则没有安装tftp

2,分别安装tftp服务器,客户端,守护进程

 yum  install  tftp服务器
  yum  install  tftp
  yum  install  xinetd 

3,配置tftp

 vi /etc/xinetd.d/tftp 
 {
  时间=disable 没有
  socket_type =dgram
  protocol =udp
  wait =,是的
  时间=user 根
  server =/usr/sbin/in.tftpd
  时间=server_args  -s /home/肯特/tftpboot  - c
  per_source =11
  cps =100, 2
  flags =IPv4
  }

注:修改server_args=s/home/kent/tftpboot - c,这里的- c一定要加上,否则只能下载不能上传!

4,创建tftp目录并修改权限

 cd /home/肯特/mkdir  tftpboot
  chmod  777年,tftpboot 

注:不修改属性会出现误差

5, selinux模式修改为只记录不拦截

 setenforce  0 

6,关闭防火墙

 service  iptables 停止

7日重启xinetd

 service  xinetd 启动

8日查看服务

 netstat  -a  |, grep  tftp 
 udp ,,,,,,, 0,,,,,, 0, 0.0.0.0: tftp ,,,,,,,,,,, 0.0.0.0: * 

9日测试

 cd 肯特/tftpboot/home/touch  testserver
  cd /home/肯特
  touch  testclient
  tftp  127.0.0.1
  get  testserver
  put  testclient
  问

在/home/肯特目录下有刚刚从服务器下载的testserver文件,在/home/肯特/tftpboot/目录下有刚刚从客户端上传的testclient文件

到此,相信大家对“Fedora22怎么配置tftp服务器”有了更深的了解,不妨来实际操作一番吧!这里是网站,更多相关内容可以进入相关频道进行查询,关注我们,继续学习!

Fedora22怎么配置tftp服务器