Install tftp in Ubuntu 16.04
Install tftp1. install $ apt-get install tftp-hpa tftpd-hpa in Ubuntu 16.04. 2. Create the directory $ mkdir/tftpboot # This is to create the tftp transmission directory. $ Sudo chmod 0777/tftpboot $ sudo touch test.txt # It is best to enter content in the test.txt file to distinguish 3. configuration # vi/etc/default/tftpd-hpaTFTP_USERNAME = "tftp" TFTP_DIRECTORY = "/tftpboot" # Here is your tftpd-hpa service directory, wherever you want to create a file, TFTP_ADDRESS = "0.0.0.0: 69" TFTP_OPTIONS = "-l-c-s" # Here is the option, and-c is the parameter that can upload files, -s specifies the tftpd-hpa service directory, which has been specified 4. restart the service $ sudo service tftpd-hpa restart # Start the service. Pay attention to the independent service form. 5. test # cd/home # tftp localhost # localhost indicates the local machine tftp> get test.txt // test.txt is the file created in the/tftpboot directory tftp> put test1.txt // test1.txt is in/home after the new file tftp> q in the directory is exited, there will be a test.txt file under the/homedirectory and test1.txt under the/tftpboot directory, which indicates that the tftp server is successfully installed!