How to configure tftp server for Fedora22
This article mainly explains "how to configure tftp server with Fedora22". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "how to configure tftp server with Fedora22".
1. Check whether tftprpm-qa is installed | grep tftp
Note: if nothing is queried, tftp is not installed.
2. Install tftp server, client, daemon yum install tftp-serveryum install tftpyum install xinetd3, configure tftpvi / etc/xinetd.d/tftp {disable = no socket_type = dgram protocol = yes user = root server = / usr/sbin/in.tftpd server_args =-s / home/kent/tftpboot-c per_source = 11 cps = 100 2 flags = IPv4}
Note: modify server_args =-s / home/kent/tftpboot-c, the-c here must be added, otherwise you can only download and not upload!
4. Create the tftp directory and modify the permission cd / home/kent/mkdir tftpbootchmod 777 tftpboot
Note: error will appear if the attribute is not modified.
5. Selinux mode is modified to record but not intercept setenforce 06, close firewall service iptables stop7, restart xinetdservice xinetd restart8, view service netstat-a | grep tftpudp 00 0.0.0.0:tftp 0.0.0.0 xinetdservice xinetd restart8 9, test cd / home/kent/tftpboottouch testservercd / home/kenttouch testclienttftp 127.0.0.1get testserverput testclientq
There is the testserver file just downloaded from the server in the / home/kent directory, and the testclient file just uploaded from the client in the / home/kent/tftpboot/ directory
At this point, I believe you have a deeper understanding of "Fedora22 how to configure tftp server", might as well come to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!