1.2.2 5 TFTP服务配置

原文链接 http://community.spiceworks.com/how_to/100006-install-and-configure-tftp-under-ubuntu-14-04


Introduction

Title pretty much says it all = )

Steps (10 total)

1

install tftpd-hpa

sudo apt-get install tftpd-hpa

2

I tend to use VIM instead of VI

sudo apt-get install vim

3

edit the config file

sudo vim /etc/default/tftpd-hpa

4

edit mode

press the ESC key and then A key

5

paste away

# /etc/default/tftpd-hpa 
TFTP_USERNAME="tftp" 
TFTP_DIRECTORY="/tftpboot" 
TFTP_ADDRESS="0.0.0.0:69" 
TFTP_OPTIONS="-s -c -l"

6

write and quit

after your config file is ready to rock and roll press Esc then :WQ

7

create the directory files will reside in

sudo mkdir /tftpboot

8

change permissions and ownership

sudo chmod -R 777 /tftpboot 
sudo chown -R nobody /tftpboot

9

restart service to get it rolling

sudo service tftpd-hpa restart

10

please note you need to open up firewall and or configure port forwarding

UDP port is set to 69 
You can change this in step 5

Conclusion

pretty simple really, and a great thing to have in case Godzilla runs a muck on one of your sites and you have to shoot out some simple config files in record time. As always if there are any questions or constructive criticism, I am always happy to hear it.



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值