1、命令安装 tftp server
[root@localhost ~]# yum -y install tftp
[root@localhost ~]# yum -y install tftp-server
2、配置 tftp 的配置文件vi /etc/xinetd.d/tftp
将修改 disable 的值为 no
[root@localhost ~]#vi /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
per_source = 11
cps = 100 2
flags = IPv4
}
3、开启 xinetd.service
[root@localhost ~]#systemctl restart xinetd.service
注:xinetd的安装:
[root@localhost init.d]# yum -y install xinetd
[root@localhost xinetd.d]# rpm -qa | grep xinetd
xinetd-2.3.15-12.el7.x86_64
4、查看tftp server开启状态
查看到69端口启动了说明tftp server已经启动成功并正常运行
[root@localhost lib]# netstat -a | grep tftp
udp 0 0 0.0.0.0:tftp 0.0.0.0:*
[root@localhost lib]# netstat -tunap | grep :69
udp 0 0 0.0.0.0:69 0.0.0.0:* 958/xinetd
5、使用fileZilla(window客户端)连接tftp服务
fileZilla可以使用root用户进行登录,连接之后可以方便在window和linux系统之间拷贝文件及目录
fileZilla下载 https://www.aliyundrive.com/s/fLHWo6moX2R
提取码: 11bd
步骤如图