简单文件传输协议是一种基于UDP协议的客户端和服务器之间进行简单文件传输的协议,它提供了不复杂、开销不大的文件传输服务。vim
它使用UDP协议的69号端口做为其传输,不能列出目录内容,无验证或加密机制,被用于在远程服务器上读取或写入文件,所以文件的传输过程也不像FTP协议那样可靠。可是TFTP不须要客户端的权限认证,也就减小了无谓的系统和网络带宽消耗,所以在传输琐碎不大的文件时,效率更加高,目前主要适用于私人的本地网络中,经常使用于PXE无盘启动,网络设备的设置等。服务器
rpm -ivh /mnt/cdrom/Packages/xinetd-2.3.14-39.el6_4.x86_64.rpm rpm -ivh /mnt/cdrom/Packages/tftp-server-0.49-7.el6.x86_64.rpm rpm -ivh /mnt/cdrom/Packages/tftp-0.49-7.el6.x86_64.rpm
vim /etc/xinetd.d/tftp
#default: off
#description: The tftp server serves files using the trivial file transfer \
#protocol. The tftp protocol is often used to boot diskless \
#workstations, download configuration files to network-aware printers, \
#and to start the installation process for some operating systems.
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /var/lib/tftpboot
disable = no //默认的yes修改成no,表示开启
per_source = 11
cps = 100 2
flags = IPv4网络
chkconfig xinetd on service xinetd start
TFTP的根目录为/var/lib/tftpbootless
TFTP应用不止于此,通常与其余软件配合使用,如前博文 [亲测可用] PXE无人值守自动装机 的综合应用。socket