1,browse @http://www.rpmfind.net/linux/rpm2html/search.php?query=tftp&submit=Search+...&system=fedora&arch=
download the three .rpm files :tftp-server-0.49-5.fc12.i686.rpm ; tftp-0.49-5.fc12.i686.rpm ; xinetd-2.3.14-29.fc12.i686.rpm
2安装这三个软件包:用rpm -ivh命令(先安装xinetd服务)
3修改文件/etc/xinetd.d/tftp。主要是设置TFTP服务器的根目录,开启服务。
修改后的配置文件如下:
service tftp
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /var/lib/tftpboot -c // tftp-server root path
per_source = 11
cps = 100 2
flags = IPv4
}
4关闭防火墙:#/etc/init.d/iptables stop //关闭防火墙
5 启动tftp-server。
#service xinetd restart
这样,tftp-server就启动了。
6用netstat -a|grep tftp查看是否启动了tftp服务。
[root@localhost /]# netstat -a|grep tftp
udp 0 0 *:tftp *:*
7测试服务:tftp 192.168.1.232
[root@localhost /]# tftp 192.168.0.94
tftp> get <downloadfile>
tftp> put <uploadfile>
tftp>q
[root@localhost /]#