1. Install the related software package sudoapt-getinstalltftpd (server) sudoapt-getinstalltftp (client) sudoapt-getinstallxinetd2, create the configuration file cd/etc/xinetd. d/sudovimtftp input servicetftp {socket_type = dgramprotocol = udpwait = ye
1. Install related software packages
Sudo apt-get install tftpd (server)
Sudo apt-get install tftp (client)
Sudo apt-get install xinetd
2. Create a configuration file
Cd/etc/xinetd. d/
Sudo vim tftp
Input
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
CPIs = 100 2
Flags = IPv4
}
Save disk and exit
3. Create a tftp service file directory
Sudo mkdir/tftpboot
Sudo chmod 777/tftpboot-R
4. Restart the service
Sudo/etc/init. d/xinetd restart
Installation complete!
Test:
/Nfsroot/rootfs/button $ tftp 192.168.2.75
Tftp> put hello. c
Sent 1018 bytes in 0.0 seconds
Tftp> get hello. c
Received 1018 bytes in 0.1 seconds
Tftp> put book. c
Sent 1980 bytes in 0.0 seconds
Tftp> get book. c
Received 1980 bytes in 0.0 seconds
Note: nfsroot/rootfs/button contains hello. c book. c in advance.