(转载)Ubuntu下建立tftp服务器
来源:互联网 发布:平面设计 淘宝美工 编辑:程序博客网 时间:2024/06/06 18:35
sudo apt-get install tftpd-hpa ;安装tftp服务端
sudo apt-get install tftp-hpa ;安装tftp客户端
sudo apt-get install xinetd
3.在/下建立tftpboot目录,作为服务器的目录
sudo mkdir /tftpboot
释放权限:
sudo chmod 777 /tftpboot
sudo gedit /etc/default/tftpd-hpa
打开tftpd-hpa文件,进行编辑。其内容为:
# /etc/default/tftpd-hpa
TFTP_USERNAME="tftp"
#TFTP_DIRECTORY="/var/lib/tftpboot"
TFTP_DIRECTORY="/tftpboot"
TFTP_ADDRESS="0.0.0.0:69"
#TFTP_OPTIONS="--secure"
#服务器目录,需要设置权限为777
mkdir /tftpboot
chmod 777 /tftpoot
#这个目录要改为你自己的TFTP根目录~~~
TFTP_DIRECTORY="/home/thexin/tftpboot"
#参数设置看个人需要
TFTP_OPTIONS="-l -c -s"
5.重启xinetd服务
sudo /etc/init.d/xinetd restart
6.重启tftpd服务
sudo /etc/init.d/tftpd-hpa restart
启动服务
sudo service tftpd-hpa restart
7.对TFTP配置成功与否进行测试
cd /home/cpc/tftpboot
touch aa.txt bb.txt //在服务器上放置两文件
cd /home
tftp localhost //进入FTP服务器
get aa.txt bb.txt //从FTP上下载文件
然后查看/home目录下是否有aa.txt bb.txt这两文件,如果有则成功,或者你可以进行如下测试
先在/home目录下写一文件hello.c
登录TFTP服务器(按以上方法),然后将hello.c上传,即put hello.c,最后再进入TFTP所在的主目录/home/cpc/tftpboot上查看是否有文件hello.c存在,如果存在,则成功。
8.退出tftp命令:quit
9.卸载防火墙:(sudo apt-get remove iptables)
- (转载)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下搭建tftp服务器
- ubuntu下搭建tftp服务器
- Ubuntu下搭建tftp服务器
- ubuntu下搭建tftp服务器
- 黑马程序员——Java语言基础(二)
- Spring之HelloWorld
- A Walk Through the Forest
- Cocoa如何Test一个可执行文件
- ZOJ - 1008 Gnome Tetravex
- (转载)Ubuntu下建立tftp服务器
- 分公司电脑通过大手笔投入
- iPhone/iOS获得基站信息
- MapReduce实例--内连接
- 分公司电脑通过大手笔投入
- 《Java程序员面试笔试宝典》之volatile有什么作用
- Linux中的SUID SGID详解
- Arbitrage
- ActiveMQ学习