Chinaunix首页 | 论坛 | 博客
  • 博客访问: 565489
  • 博文数量: 213
  • 博客积分: 6789
  • 博客等级: 准将
  • 技术积分: 1947
  • 用 户 组: 普通用户
  • 注册时间: 2009-09-01 17:11
文章分类

全部博文(213)

文章存档

2012年(9)

2011年(62)

2010年(99)

2009年(43)

分类: LINUX

2010-12-24 16:55:46

tftp
Clipped from:
在ubuntu下安装xinetd模式的tftpd服务

[日期:2007-05-11]  来源:Linux公社  作者:Linux  [字体:大 中 小]


1、安装server与client
sudo apt-get install tftpd-hpa tftp-hpa

2、删除standalone的启动方式
sudo update-rc.d -f tftpd-hpa remove

3、新建用户tftpd及其主目录
sudo mkdir -p /home/tftpd
sudo useradd -s /bin/false -g nogroup -d /home/tftpd [-p PASSWORD] tftpd

3.5 install xinetd

sudo apt-get install xinetd

4、新建xinetd启动文件
cat /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 /home/tftpd -p -c -U 077 -u tftpd
log_on_success += PID HOST DURATION
log_on_failure += HOST
}
5、注释掉/etc/inetd.conf文件中tftpd启动
#tftp dgram udp wait root /usr/sbin/in.tftpd /usr/sbin/in.tftpd -s /var/lib/tftpboot

5.5 if you have other network connections, such as WiFi, dual-eth cards, pls shutdown the others if tftp is not working.

6、重新启动xinetd服务
sudo /etc/init.d/xinetd restart

7、测试tftpd服务是否成功
tftp localhost
tftp> put 123.log
tftp> put 123.log test.log
tftp> get test.log
tftp> get test.log abc.log
tftp> verbose
Verbose mode on.
tftp> trace
Packet tracing on.
tftp> put kkk.log
sent DATA
received ACK
.........
sent DATA
received ACK
Sent 12999997 bytes in -1.5 seconds [-69987938 bit/s]
阅读(1359) | 评论(0) | 转发(0) |
0

上一篇:qq config

下一篇:sources.list

给主人留下些什么吧!~~