ubuntu tftp服务器安装的5个步骤


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

ubuntu tftp服务器安装1. 安装tftpdtftp服务器)、tftptftp客户端)以及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> 

相关内容

    暂无相关文章