ubuntu下搭建tftp服务器
来源:互联网 发布:php页面重定向 编辑:程序博客网 时间:2024/05/18 03:50
1.安装tftp客户端及服务器端的软件,tftp-hpa是客户端,tftpd-hpa是服务器端。
sudo apt-get install xinetd tftpd-hpa tftp-hpa
2、xinetd会建立目录/etc/xinetd.d/
在这个目录下建立新文件tftpd
代码:sudo touch tftpd
3、编辑sudo gedit /etc/xinetd.d/tftpd
加入以下内容:
service tftp
{
disable = no
socket_type = dgram
wait = no
user = root
protocol = udp
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot -c
log_on_success = PID HOST DURATION
log_on_failure = HOST
}
注意:/tftpboot是你的tftp的根目录,其它的不用修改
4、建立tftp根目录:
sudo mkdir /tftpboot
修改权限
sudo chmod 777 /tftpboot
5、修改/etc/default/tftpd-hpa
代码: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="-l -c -s"
6、重启服务
代码:
sudo /etc/init.d/xinetd reload //修改配置后都应该有这一句
sudo /etc/init.d/xinetd restart
重启系统
下载文件:tftp -gr filename server_ip
上传文件:tftp -pr filename server_ip
- UBUNTU下TFTP服务器搭建
- UBUNTU下TFTP服务器搭建
- ubuntu下搭建tftp服务器
- ubuntu下搭建tftp服务器
- ubuntu下搭建tftp服务器
- Ubuntu下搭建tftp服务器
- ubuntu下搭建tftp服务器
- Ubuntu下搭建tftp服务器
- ubuntu下搭建tftp服务器
- ubuntu下搭建tftp服务器
- ubuntu下搭建tftp服务器
- Ubuntu下搭建tftp服务器
- ubuntu下tftp服务器搭建
- ubuntu下搭建tftp服务器
- ubuntu 10.04下的tftp服务器搭建
- ubuntu 10.04下的tftp服务器搭建
- Ubuntu-10.10下tftp服务器搭建
- 在Ubuntu下tftp服务器搭建
- Why Programming Is The Core Skill Of The 21st Century
- ios学习之真机测试 copy图片错误解决方案
- GDAL/OGR创建DXF文件中多图层的方法
- 对linux系统进行内核升级遇到的一些问题
- ArcGIS API for JavaScript 3.3版本发布
- ubuntu下搭建tftp服务器
- Axis2实现WebService实例 HelloWord
- Linux socket编程学习笔记(一):socket()函数详解
- VC++之对话框中添加工具栏
- mac mysql汉字乱码问题解决
- Starling分辨率适应解决方案
- 个人常用centos指令汇总
- 第八章 高级视图和URL配置
- poj 1521 Entropy huffman(哈夫曼)编码