1.安装TFTP服务
[root@dsrw ~]# dnf install -y tftp-server xinetd
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
上次元数据过期检查:1:19:31 前,执行于 2022年12月25日 星期日 12时46分59秒。
依赖关系解决。
================================================================================
软件包 架构 版本 仓库 大小
================================================================================
Installing:
tftp-server x86_64 5.2-24.el8 AppStream 50 k
xinetd x86_64 2:2.3.15-23.el8 AppStream 135 k
事务概要
================================================================================
安装 2 软件包
总计:185 k
安装大小:346 k
下载软件包:
运行事务检查
事务检查成功。
运行事务测试
事务测试成功。
运行事务
准备中 : 1/1
Installing : xinetd-2:2.3.15-23.el8.x86_64 1/2
运行脚本 : xinetd-2:2.3.15-23.el8.x86_64 1/2
Installing : tftp-server-5.2-24.el8.x86_64 2/2
运行脚本 : tftp-server-5.2-24.el8.x86_64 2/2
验证 : tftp-server-5.2-24.el8.x86_64 1/2
验证 : xinetd-2:2.3.15-23.el8.x86_64 2/2
Installed products updated.
已安装:
tftp-server-5.2-24.el8.x86_64 xinetd-2:2.3.15-23.el8.x86_64
完毕!
2.配置TFTP服务
[root@dsrw ~]# vim /etc/xinetd.d/tftp
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
}
[root@dsrw ~]# systemctl restart xinetd
[root@dsrw ~]# systemctl enable xinetd
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
请登录后查看评论内容