tftp服务器最简单安装配置
1.安装tftp-server
sudo apt-get install tftpd-hpa
sudo apt-get install tftp-hpa(如果不需要客户端可以不安装)
tftp-hpa是客户端
tftpd-hpa是服务器端
2.配置TFTP服务器
sudo vim /etc/default/tftpd-hpa
将原来的内容改为:
TFTP_USERNAME=”tftp”
TFTP_ADDRESS=”0.0.0.0:69″
TFTP_DIRECTORY=”tftp根目录” #服务器目录,需要设置权限为777,chomd 777
TFTP_OPTIONS=”-l -c -s”
3.重新启动TFTP服务
sudo service tftpd-hpa restart
4.测试
1)在/tftpboot 下创建测试文件test,并修改test的文件权限
$cd /tftpboot
sudo touch test
sudo chmod 777 test
2)测试一下 tftp服务:
$cd
tftp 192.168.1.100 //(自觉修改为自己Linux系统的IP)
tftp>get test
tftp>q
$ls
查看当前目录,发现test 文件已在当前目录,此时tftp搭建成功
相关阅读:
Ubuntu下tftp服务搭建 http://www.linuxidc.com/Linux/2012-08/67933.htm
TFTP服务器配置 http://www.linuxidc.com/Linux/2012-07/64785.htm
Ubuntu Linux配置TFTP下载服务器 http://www.linuxidc.com/Linux/2010-12/30394.htm
Ubuntu 11.10 配置tftp Server http://www.linuxidc.com/Linux/2012-05/60808.htm
更多Ubuntu相关信息见Ubuntu 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=2