浅析Linux下设置tftp服务器的方法


在很多时候,我们需要在多个系统中,进行设置tftp服务器的工作。那么今天我们主要讲解一下Linux下设置tftp服务器的内容。由于主机使用的是windows7系统,tftp32与之貌似不太兼容,因此从linux上搭建了一个tftp服务器,方法如下:

Linux下设置tftp服务器1. yum install tftp-server

Linux下设置tftp服务器2. 终端中输入setup,在服务中将tftp打开

Linux下设置tftp服务器3. service iptables stop ,关闭防火墙

Linux下设置tftp服务器4. 修改文件/etc/xinetd.d/tftp。主要是设置TFTP服务器的根目录,开启服务。

修改后的文件如下:

service tftp {

socket_type            =dgram

protocol                  =udp

wait                        =yes

user                        =root

server                     =/usr/sbin/in.tftpd

server_args             =-s /home/app -c

disable                    =no

per_source             =11

cps                         =100 2

flags                       =IPv4

}

Linux下设置tftp服务器5. mkdir /home/app

Linux下设置tftp服务器6. service xinetd restart

Linux下设置tftp服务器7.最后就可以将文件放入/home/app下进行tftp传输了,不要忘记给文件权限哦,否则会提示permission denied

相关内容

    暂无相关文章