Ubuntu 配置tftp下载服务器,及其一般用法
2012-04-12 14:49
786 查看
tftp分两类:客户端 tftp;服务器 tftpd。
1、下载并安装tftp服务器。
sudo apt-get install tftp-hpa tftpd -hpa
2、配置
tftp-hpa的配置文件是 /etc/default/tftpd-hpa
vim /etc/default/tftpd-hpa
显示Distribution版本信息的命令: lsb_release -a
本机为:Ubuntu 10.10
显示系统(内核)位数的命令: uname -a
本机为:Linux ubuntu 2.6.35-22-generic #33-Ubuntu SMP Sun Sep 19 20:34:50 UTC 2010 i686 GNU/Linux
------------------------------------------------------
# /etc/default/tftpd-hpa
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/var/lib/tftpboot" // 你的tftp-pha服务目录
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="--secure" // 选项
-------------------------------------------------------
3、启动服务器
sudo service tftpd-hpa restart
4.1、使用tftp服务:下载文件 (get)
cd /var/lib/tftpboot
chmod -R 777 /var/lib/tftpboot
vim t.txt //输入若干文本
cd ~/
tftp localhost
tftp 192.168.0.119 // ifconfig 取得本机ip,并使用本机ip
get t.txt
结果:在当前用户目录下有t.txt文件。
4.2 上传文件
1、下载并安装tftp服务器。
sudo apt-get install tftp-hpa tftpd -hpa
2、配置
tftp-hpa的配置文件是 /etc/default/tftpd-hpa
vim /etc/default/tftpd-hpa
显示Distribution版本信息的命令: lsb_release -a
本机为:Ubuntu 10.10
显示系统(内核)位数的命令: uname -a
本机为:Linux ubuntu 2.6.35-22-generic #33-Ubuntu SMP Sun Sep 19 20:34:50 UTC 2010 i686 GNU/Linux
------------------------------------------------------
# /etc/default/tftpd-hpa
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/var/lib/tftpboot" // 你的tftp-pha服务目录
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="--secure" // 选项
-------------------------------------------------------
3、启动服务器
sudo service tftpd-hpa restart
4.1、使用tftp服务:下载文件 (get)
cd /var/lib/tftpboot
chmod -R 777 /var/lib/tftpboot
vim t.txt //输入若干文本
cd ~/
tftp localhost
tftp 192.168.0.119 // ifconfig 取得本机ip,并使用本机ip
get t.txt
结果:在当前用户目录下有t.txt文件。
4.2 上传文件
相关文章推荐
- Ubuntu14配置tftp服务器
- ubuntu 10.04下的配置tftp服务器
- ubuntu 10.04下的配置tftp服务器
- 配置ubuntu - tftp server服务器步骤
- Ubuntu14.04环境下配置TFTP服务器
- Ubuntu安装配置TFTP服务器
- ubuntu 14.04 配置tftp服务器
- Ubuntu14.04环境下配置TFTP服务器
- 使用ubuntu 配置 tftp 服务器
- windows 2003 web服务器配置所需软件整理及其下载地址
- ubuntu 下的配置tftp服务器
- ubuntu 10.04下的配置tftp服务器
- ubuntu 10.04下的配置tftp服务器
- 小熊学习总结:ubuntu 10.04下的配置tftp服务器
- [3]_嵌入式开发环境搭建1_在ubuntu16.04.3 安装配置nfs 和 tftp服务器
- nfs启动:u-boot启动后从ubuntu tftp下载内核及设备树,文件系统挂载在nfs服务器目录
- Ubuntu下配置TFTP服务器
- ubuntu配置TFTP服务器
- ubuntu 11.10 配置 tftp服务器
- 新手搭建Ubuntu tftp服务器并下载文件到嵌入式板子