配置TFTP
TFTP Server
用以下命令查看系统是否已安装TFTP
#rpm -q tftp tftp-server

如果没有安装,用以下命令安装
yum install tftp tftp-server

修改配置文件
vi /etc/xinetd.d/tftp

server_args = -s /var/lib/tftpboot ####这个是TFTP默认的目录
把它修改为
erver_args = -s /tftpboot

建立/tftpboot这个目录
mkdir -v /tftpboot

启动TFTP
service xinetd start
chkconfig tftp on ####设为开机启动

 

配置文件:

service tftp
{
        socket_type             = dgram
        protocol                = udp
        wait                    = yes
        user                    = root
        server                  = /usr/sbin/in.tftpd
        server_args             = -s /tftpboot/
        disable                 = no
        per_source              = 11
        cps                     = 100 2
        flags                   = IPv4
}