ubuntu 安裝 tftp server
1.安裝相關軟件包apt-get install tftpd tftp xinetd2.建立配置文件
cd /etc/xinetd.d/
vi tftp
輸入
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}
儲存退出
cd /etc/xinetd.d/
vi tftp
輸入
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}
儲存退出
3.建立tftp目錄
sudo mkdir ~/tftpboot
4.重新啟動xinetd
/etc/init.d/xinetd restart
5.測試TFTP Server功能,在/tftpboot 目錄下隨便放個檔案
$tftp x.x.x.x
get 檔案