Ubuntu 14.04中安装tftp

前端之家收集整理的这篇文章主要介绍了Ubuntu 14.04中安装tftp前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

1. 安装sudo apt-get install tftp-hpa tftpd-hpa 2. 建立目录sudo mkdir /tftpboot sudo chmod 0777 /tftpbootsudo touch test1.txt 3. 配置sudo vi /etc/default/tftpd-hpaTFTP_USERNAME="tftp"TFTP_DIRECTORY="/tftpboot" TFTP_ADDRESS="0.0.0.0:69"TFTP_OPTIONS="-l -c -s" # -c允许上传文件,-s是指定服务目录。 4. 重启服务sudo service tftpd-hpa restart 5. 测试cd ~tftp localhosttftp>get test1.txt tftp>put test2.txttftp>q退出后,在当前目录下会有一个test1.txt文件,在/tftpboot目录下有test2.txt,表示tftp服务器安装成功!

猜你在找的Ubuntu相关文章