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
阅读(923) | 评论(0) | 转发(0) |