Ubuntu 安装tftp服务器
来源:互联网 发布:数码暴龙网络侦探图鉴 编辑:程序博客网 时间:2024/06/02 14:47
平台:Ubuntu 12.10
1) 安装增强版tftp服务器,客户端以及xinetd(超级服务器)
- sudo apt-get install tftp-hpa tftpd-hpa xinetd
2) 建立主目录并更改权限
- sudo mkdir -p /home/iServer/tftpboot
- sudo chmod 777 /home/iServer/tftpboot
3) 配置tftp服务器
- sudo vim /etc/default/tftpd-hpa
内容如下:
- # /etc/default/tftpd-hpa
- TFTP_USERNAME="tftp"
- TFTP_DIRECTORY="/home/iServer/tftpboot" #此项为tftp服务器工作目录,填写之前建立的主目录绝对地址
- TFTP_ADDRESS="0.0.0.0:69"
- TFTP_OPTIONS="--secure"
4) 配置xinetd超级服务器
- sudo vim /etc/xinetd.d/tftp
内容修改如下:
- service tftp
- {
- disable = no
- socket_type = dgram
- wait = yes
- user = root
- protocol = udp
- port = 69
- server = /usr/sbin/in.tftpd
- server_args = -s /home/iServer/tftpboot
- per_source = 11
- cps = 100 2
- flags = IPv4
- }
PS:其中server_args为tftp服务器工作目录,填写之前建立的主目录绝对地址
5) 重启服务器(重要!!)
此步经常被疏忽掉,或者不明者会说,此处别忘记重启PC,其实只要重启一下服务器就好了,共分三步,如下:
- sudo service tftpd-hpa restart #重启tftpd-hpa服务器
- sudo /etc/init.d/xinetd reload #重新加载xinetd超级服务器配置文件
- sudo /etc/init.d/xinetd restart #重启xinetd超级服务器
done.
PS:不要忘记在使用tftp服务器上传/下载文件时,先把文件权限设置成777呦,防止出现不必要的麻烦
参考资料:
- http://www.cnblogs.com/geneil/archive/2011/11/24/2261653.html
- http://www.linuxidc.com/Linux/2008-03/11388.htm
- http://wenku.baidu.com/view/aa66e3290066f5335a8121c1.html
本文出自 “幻冥极地” 博客,请务必保留此出处http://littlemo.blog.51cto.com/3184796/1134552
0 0
- Ubuntu安装tftp服务器
- Ubuntu 安装tftp服务器
- ubuntu tftp服务器安装
- Ubuntu 8.1安装tftp服务器
- ubuntu下tftp服务器安装
- ubuntu 12.04 安装tftp服务器
- ubuntu下安装TFTP服务器
- ubuntu下tftp服务器安装
- ubuntu中安装tftp服务器
- linux -- Ubuntu安装TFTP服务器
- 【ubuntu】[TFTP]: 搭建tftp服务器的安装、设置、调试
- Ubuntu下安装tftp服务器配置
- Ubuntu下安装tftp服务器的步骤
- ubuntu 10.04下安装 tftp 服务器
- Ubuntu-11.10之六 Tftp服务器安装
- ubuntu系统tftp服务器安装配置
- ubuntu 11.10下安装 tftp 服务器
- [随笔]在ubuntu下安装tftp服务器
- 【思考】函数指针与指针函数
- 【误区】关于Linux C 网络编程函数accept第三个参数
- 【注意】关于fgets函数
- Ubuntu 内核编译 make menuconfig 发生错误 解决方案
- Ubuntu 内核编译 make gconfig 出错解决办法
- Ubuntu 安装tftp服务器
- Ubuntu 安装NFS服务器
- Ubuntu 安装Samba服务器
- Rhythmbox 中文乱码解决
- Ubuntu 安装arm交叉工具链
- Netbeans IDE 添加arm交叉工具链
- Ubuntu 安装SecureCRT报错解决办法
- Linux 终端配色没了
- Ubuntu 安装搜狗拼音输入法 - sogoupinyin