Ubuntu tftp service Setup 1. install the software package sudoapt-getinstalltftpdtftpxinetd2, create the configuration file in/etc/xinetd. create a configuration file tftpsudovi/etc/xinetd. d/tftp content: servicetftp {& nbsp
Build a tftp service in Ubuntu
1. install the software package
Sudo apt-get install tftpd tftp xinetd
2. Create a configuration file
Create a configuration file tftp under/etc/xinetd. d/
Sudo vi/etc/xinetd. d/tftp
The content is as follows:
- 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
- }
3. Create a tftp service file directory
In the preceding configuration, server_args =-s/tftpboot is used. The/tftpboot directory is the location of the uploaded and downloaded files.
Sudo mkdir/tftpboot -- create the/tftpboot directory
Sudo chmod 777/tftpboot-R -- set the permission to 777
4. Restart the tftp service.
Sudo/etc/init. d/xinetd restart -- restart the tftp Server
5. Test
Sudo netstat-a | grep tftp -- check whether the startup is successful. You can see udp 0 0 *: tftp *:*