您的位置:首页 > 编程语言 > PHP开发

ubuntu16.04 LTS 下tftp的安装、配置、使用

2017-03-08 12:33 676 查看
Linux下用tftp传输文件还是很方便的,今天记录tftp的建立

1. sudo apt-get install tftpd tftp openbsd-inetd

2. sudo  vi /etc/inetd.conf

#:BOOT: TFTP service is provided primarily for booting. Most sites
# run this only on machines acting as "boot servers."
#tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /srv/tftp  (/srv/tftp 为默认tftp目录)

#修改如下文件
tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd
/home/tftproot

3.sudo mkdir /home/tftproot

4.sudo chmod 777 /home/tftproot    (非常重要,要具备读写权限才能操作)

5.sudo /etc/init.d/openbsd-inetd restart

6.本机测试

      a. 在/tftproot 下新建文件1.txt   
      b. 在其他目录下测试:

       tftp 127.0.0.1

       tftp> get 1.txt

        Received 12 bytes in 0.0 seconds

        tftp> quit

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: