tftp服务器建立

来源:互联网 发布:华硕网络同传系统 编辑:程序博客网 时间:2024/05/22 15:34

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{protocol        = udpport            = 69socket_type     = dgramwait            = yesuser            = nobodyserver          = /usr/sbin/in.tftpdserver_args     = /tftpbootdisable         = no}

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.100tftp> put hda.txtSent 722 bytes in 0.0 secondstftp> quit$ ls -l /tftpboot/

原创粉丝点击