1. sudo apt-get install tftp-hpa tftpd-hpa sudo apt-get install xinetd sudo apt-get install netkit-inetd2. cd / sudo mkdir /tftpboot sudo chmod 777 /tftpboot3. sudo in.tftpd -l /tftpboot 这样tftp服务器就启动了,下面可以做一个测试4. cd /tftpboot touch test 建立一个文件5. cd /home/usrname 登录另一个目录6. tftp 192.168.0.59 换成自己的ip > get /tftpboot/test打开目录 /etc/xinetd.d/新建文件tftptftp内容:service tftp{ disable = no socket_type = dgram protocol = udp wait = yes user = root server = /usr/sbin/in.tftpd server_args = -s /tftpboot -c per_source = 11 cps = 100 2}重新启动服务:sudo /etc/init.d/xinetd restartsudo in.tftpd -l /tftpboot安装过程中出现的问题及原因现象一:tftp> get test.logTransfer timed out.原因:tftpd服务没有启动现象二:tftp> get test.logError code 2: Only absolute filenames allowed原因:在/etc/xinetd.d/tftpd中设置的server_args为/etc/default/tftpd-hpacat /etc/default/tftpd-hpa#Defaults for tftpd-hpaRUN_DAEMON="no"OPTIONS="-s /home/tftpd -c -p -U 077 -u tftpd"设置的时候只要将server_args=改为你自己设定的服务器文件夹就行了现象三:tftp> put ex070416.logError code 1: File not found原因:指定的文件不存在;或tftpd启动参数中没有指定-c选项,允许上传文件ubuntu下软件使用集锦从硬盘安装Fedora7相关资讯 tftp安装
- Linux下TFTP服务的安装、配置和操 (06/06/2013 06:27:58)
本文评论 查看全部评论 (0)