首页 Ubuntu ubuntu tftp 安装

ubuntu 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. #t

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 /tftproot

3.sudo mkdir /tftproot

4.sudo chmod 777 /tftproot

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

6.查看69端口是否有打开 :netstat -an | more| grep udp

udp 0 0 0.0.0.0:69 0.0.0.0:*

7.本机测试:

a. 在/tftproot 下新建文件1.txt


b. 在其他目录下测试:

tftp 127.0.0.1
tftp> get 1.txt
Received 12 bytes in 0.0 seconds

tftp> quit

本文来自网络,不代表云浮站长网立场。转载请注明出处: https://www.0766zz.com/html/zhonghe/fwq/ubuntu/20200901/9317.html
上一篇
下一篇

作者: dawei

【声明】:云浮站长网内容转载自互联网,其相关言论仅代表作者个人观点绝非权威,不代表本站立场。如您发现内容存在版权问题,请提交相关链接至邮箱:bqsm@foxmail.com,我们将及时予以处理。

为您推荐

返回顶部