Ubuntu下配置tftp服务

tftp服务器的内容,不知道大家现在掌握的如何。那么对于它的一些基本的概念和原理,我们这里都不在进行讲解,这次,主要针对ubuntu tftp服务器安装的内容,进行一下具体的阐述。

ubuntu tftp服务器安装1. 安装tftpd(tftp服务器)、tftp(tftp客户端)以及xinetd(超级服务器)

 
 
  1. #sudo apt-get install tftpd tftp xinetd 

ubuntu tftp服务器安装2. 创建/etc/xinetd.d/tftp文件,并在文件中添加如下内容

 
 
  1. service tftp  
  2. {  
  3. protocol = udp 
  4. port = 69 
  5. socket_type = dgram 
  6. wait = yes 
  7. user = nobody 
  8. server = /usr/sbin/in.tftpd  
  9. server_args = /tftpboot  
  10. disable = no 

ubuntu tftp服务器安装3. 创建tftp服务器的根目录

 
 
  1. # sudo mkdir /tftpboot   
  2. # sudo chmod -R 777 /tftpboot  
  3. # sudo chown -R nobody /tftpboot 

ubuntu tftp服务器安装4. 通过xinetd超级服务器启动tftpd

 
 
  1. # sudo /etc/init.d/xinetd start 

ubuntu tftp服务器安装5. 测试

 
 
  1. # tftp 127.0.0.1 > get <filename in the /tftpboot>

猜你喜欢

转载自blog.csdn.net/luomuxiaoxiao98/article/details/17403943