Ubuntu install TFTP service
- Ubuntu install TFTP service
- Run the following command to install Ubuntu TFTP Service
- Create a TFTP server directory and open the TFTP service profile
- In the configuration file / etc / default / tftpd-hpa, add the following fields
- Finally, restart the TFTP service
- View tftp service is running, run the following command to see if running in the background
Ubuntu install TFTP service
Run the following command to install Ubuntu TFTP Service
Note tftpd-hpa, not tftp-hpa, otherwise the following error occurs:
Failed to restart the tftpd-hpa.service: Unit-hpa.service the tftpd not found.
yuanfeng@ubuntu:~$ sudo apt-get install tftp-hpa tftpd-hpa
Create a TFTP server directory and open the TFTP service profile
yuanfeng@ubuntu:~$ mkdir -p /home/yuanfeng/tftpboot/
yuanfeng@ubuntu:~$ sudo chmod 777 /home/yuanfeng/tftpboot/
yuanfeng@ubuntu:~$ sudo vim /etc/default/tftpd-hpa
In the configuration file / etc / default / tftpd-hpa, add the following fields
TFTP_DIRECTORY="/home/yuanfeng/tftpboot"
TFTP_OPTIONS="-l -c -s"
Finally, restart the TFTP service
yuanfeng@ubuntu:~$ sudo service tftpd-hpa restart
View tftp service is running, run the following command to see if running in the background
yuanfeng@ubuntu:~$ ps -aux|grep "tftp"