ubuntu 11.04 tftp 设置
安装 TFTP 服务 sudo apt-get install xinetdsudo apt-get install tftp-hpasudo apt-get install tftpd-hpa 修改 TFTP 设置参数 sudo gedit /etc/default/tftpd-hpa# 修改内容如下TFTP_USERNAME="tftp"TFTP_DIRECTORY="/opt/tftpdroot"TFTP_ADDRESS="0.0.0.0:69"TFTP_OPTIONS="--secure -c" TFTP_DIRECTORY: TFTP 服务目录,可自由指定,需要注意的是此目录的权限,最好设置为 rwx TFTP_OPTIONS: "-c" 选项为在 TFTP 目录下可写入,若不设置此项,在 put 命令时将提示错误 注意: 两个参数之间必须加空格,否则会造成如下错误 Error code 2: Only absolute filenames allowed 当出现 transmit timed out 时,可添加或修改配置文件 /etc/xinetd.d/tftp service tftp { socket_type =dgram protocol =udp wait =yes user =root server =/usr/sbin/in.tftpd