tftp伺服器建立

2021-05-23 09:48:50 字數 721 閱讀 2738

1. install tftpd and related packages.

$ sudo apt-get install xinetd tftpd tftp
2. create /etc/xinetd.d/tftp and put this entry:

service tftp

3. make /tftpboot directory

$ sudo mkdir /tftpboot

$ sudo chmod -r 777 /tftpboot

$ sudo chown -r nobody /tftpboot

4. start tftpd through xinetd

$ sudo /etc/init.d/xinetd start
5. testing. tranfering file hda.txt from 192.168.1.100 (client using tftp) to 192.168.1.100 (server 192.168.1.100). get an example file to transfer (eg. hda.txt)

$ tftp 192.168.1.100

tftp> put hda.txt

sent 722 bytes in 0.0 seconds

tftp> quit

$ ls -l /tftpboot/

ubuntu 建立tftp伺服器

1 sudo apt get install tftp tftpd openbsd inetd 2 sudo mkdir tftpboot sudo chmod 777 tftpboot r 3 sudo vim etc inetd.conf tftp dgram udp wait nobody u...

Ubuntu下建立tftp伺服器

1 安裝程式 sudo apt get install tftp tftpd sudo apt get install openbsd inetd 2 新建資料夾 cd sudo mkdir tftpboot sudo chmod 777 tftpboot 3 修改存放目錄 sudo vi etc ...

Ubuntu下建立tftp伺服器

安裝tftp的服務端和客戶端 sudo apt get install tftpd hpa 安裝tftp服務端 sudo apt get install tftp hpa 安裝tftp客戶端 2.安裝xinetd sudo apt get install xinetd 3.在 下建立tftpboot...