tftp
Clipped from:
在ubuntu下安装xinetd模式的tftpd服务
[日期:2007-05-11] 来源:Linux公社 作者:Linux [字体:大 中 小]
1、安装server与client
sudo apt-get install tftpd-hpa tftp-hpa
2、删除standalone的启动方式
sudo update-rc.d -f tftpd-hpa remove
3、新建用户tftpd及其主目录
sudo mkdir -p /home/tftpd
sudo useradd -s /bin/false -g nogroup -d /home/tftpd [-p PASSWORD] tftpd
3.5 install xinetd
sudo apt-get install xinetd
4、新建xinetd启动文件
cat /etc/xinetd.d/tftpd
service tftp
{
disable = no
socket_type = dgram
wait = no
user = root
protocol = udp
server = /usr/sbin/in.tftpd
server_args = -s /home/tftpd -p -c -U 077 -u tftpd
log_on_success += PID HOST DURATION
log_on_failure += HOST
}
5、注释掉/etc/inetd.conf文件中tftpd启动
#tftp dgram udp wait root /usr/sbin/in.tftpd /usr/sbin/in.tftpd -s /var/lib/tftpboot
5.5 if you have other network connections, such as WiFi, dual-eth cards, pls shutdown the others if tftp is not working.
6、重新启动xinetd服务
sudo /etc/init.d/xinetd restart
7、测试tftpd服务是否成功
tftp localhost
tftp> put 123.log
tftp> put 123.log test.log
tftp> get test.log
tftp> get test.log abc.log
tftp> verbose
Verbose mode on.
tftp> trace
Packet tracing on.
tftp> put kkk.log
sent DATA
received ACK
.........
sent DATA
received ACK
Sent 12999997 bytes in -1.5 seconds [-69987938 bit/s]
阅读(1396) | 评论(0) | 转发(0) |