歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Fedora 9 tftp 安裝與配置

Fedora 9 tftp 安裝與配置

日期:2017/2/28 16:55:52   编辑:Linux教程

安裝環境: Fedora 9
先安裝xinetd 服務:yum install xinetd
安裝tftp ,tftp-sever:yum install tftp tftp-sever
可以在這個網站搜索下載rpm包直接安裝http://www.rpmfind.com
配置:
更改tftp配置文件 /etc/xinetd.d/tftp
vim /etc/xinetd.d/tftp

# default: off
# description: The tftp server serves files using the trivial file transfer \
# protocol. The tftp protocol is often used to boot diskless \
# workstations, download configuration files to network-aware printers, \
# and to start the installation process for some operating systems.
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /home/yeling/tftpboot -c
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}

提醒: #-s 後面是tftp服務器的path,-c 允許上傳文件。如果沒有那個目錄,自己需要先建立一個,最好把權限改好chmod 777 /home/yeling/tftpboot ,用戶也可以設置成 普通用戶

命令下輸入setup看一下 tftp服務是否開啟,最好關閉防火牆(#/etc/init.d/iptables stop //關閉防火牆),我的設置不知道那裡出了問題,最後把selinux都關閉了。在桌面菜單,系統--》管理--》selinux management ,將 Enforcing Mode 設置為 Disabled .

restart電腦,或者不重啟 ,你也可以自己試試

#service xinetd restart //重啟 xinetd 服務

shell下面
#tftp your-ip-address

tftp>get

tftp>put

tftp>q

Copyright © Linux教程網 All Rights Reserved