ubuntu 12.04 配置 tftp

服务器   发布日期:10小时前   浏览次数:78

1. 安装

 sudo apt-get install tftp-hpa tftpd-hpa -qq -y

 

2.配置

编辑文件:

 sudo gedit /etc/default/tftpd-hpa

修改内容:

 # /etc/default/tftpd-hpa
 TFTP_USERNAME="tftp"
 TFTP_DIRECTORY="/tftpboot"    #自定义目录
 TFTP_ADDRESS="0.0.0.0:69"
 TFTP_OPTIONS="--secure"

 

3.创建目录并修改权限

 sudo mkdir /tftpboot
 sudo touch /tftpboot/MYTESTFILE
 sudo chown -R tftp /tftpboot
 sudo chmod -R  /tftpboot 

 

4. 测试

sudo service tftp restart
sudo tftp localhost
get MYTESTFILE

---------------------------------------------------------------------------------------------------

FTP VS TFTP

Summary:
. FTP is a user-based password network protocol used to transfer data across a network; TFTP is a network protocol that does not have any authentication processes.
. FTP may be accessed anonymously, but the amount of information transferred is limited; TFTP has no encryption process in place, and can only successfully transfer files that are not larger than one terabyte.

以上就是ubuntu 12.04 配置 tftp的详细内容,更多关于ubuntu 12.04 配置 tftp的资料请关注九品源码其它相关文章!