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

tftp 服务器配置 ubuntu 14.04.5

2016-09-26 23:13 423 查看
1 安装tftp服务器

sudo apt-get install tftpd-hpa

2 安装tftp客户端

sudo apt-get  insatll tftp-hpa

3 建立服务器目录

简单举例:

mkdir /tftpfs

chmod 777 /tftpfs

4 配置tftp服务器

sudo vi /etc/default/tftpd-hpa

# /etc/default/tftpd-hpa
TFTP_USERNAME="tftp"

TFTP_DIRECTORY="/tftpfs"

TFTP_ADDRESS="[::]:69"

TFTP_OPTIONS="-l -c -s" #-c 可以上传文件的参数 -s 指定tftpd-hpa服务目录

5 重新启动tftp服务器

sudo service ftfpd-hpa restart

6 测试tftp

tftp 192.168.2.11(本机ip)

hhp@ubuntu:~$ tftp 192.168.2.11

tftp> put  testfile    #下载测试文件

tftp> quit               #退出tftp

查看文件是否下载成功

hhp@ubuntu:~$ ls /tftpfs/

testfile

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