1、yum install dhcp tftp-server httpd syslinux xinetd net-tools -y
2、编辑/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 (由yes改为no)
per_source = 11
cps = 100 2
flags = IPv4
}
3、systemctl start xinetd && systemctl enable xinetd
4、netstat -lantuep |grep 69
5、cd /var/lib/tftpboot/
6、ls
7、cp /usr/share/syslinux/pxelinux.0 .
8、mkdir pxelinux.cfg
9、ls
pxelinux.0 pxelinux.cfg