Chinaunix首页 | 论坛 | 博客
  • 博客访问: 453491
  • 博文数量: 150
  • 博客积分: 2706
  • 博客等级: 少校
  • 技术积分: 1200
  • 用 户 组: 普通用户
  • 注册时间: 2009-11-09 11:41
文章分类

全部博文(150)

文章存档

2012年(7)

2011年(6)

2010年(68)

2009年(69)

我的朋友

分类: LINUX

2009-12-02 14:05:51

1. vi /etc/xinetd.d/tftp
 
service tftp
{
disable = no   //no for enable tftp, default is yes
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = /tftpboot    //tftp directory
}
 
 
设置完后
2. Redhat 9中
$ /etc/init.d/xinetd restart

测试:
> connect 192.168.1.xx
> status
Connected to 192.168.1.xx
> get zImage
File transferred in 12 seconds.
 
 

在FC5中启动和查看tftp的状态:
chkconfig tftp on
chkconfig --list tftp


FC12中启动tftp-server。  
#service xinetd restart
这样,tftp-server就启动了。

用netstat -a|grep tftp查看是否启动了tftp服务。
[root@localhost /]# netstat -a|grep tftp
udp        0      0 *:tftp                      *:*  
 
测试:

[root@localhost /]# tftp 192.168.0.94
tftp> get

tftp> put

tftp>q

 
阅读(890) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~