ubuntu中TFTP服务的搭建步骤

1、安装server、client

apt-get install xinetd tftp-hpa tftp-hpa

2、在/etc/xinetd.d/建立tftp文件

cd /etc/xinet.d/
touch tftpd

3、修改tftp文件

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}

4、建立Ubuntu tftp服务文件目录(上传文件与下载文件的位置),并且更改其权限

sudo mkdir /tftpboot
sudo chmod 777 /tftpboot -R

5、重新启动服务

sudo /etc/init.d/xinetd restart

猜你喜欢

转载自www.cnblogs.com/liushuhe1990/p/9784005.html