tftp伺服器安裝與配置 tftp伺服器 www.2cto.com trivial file transfer protocol 簡單檔案傳輸通訊協定 tftp有三種傳輸模式:netASCII 8位ASSCII八位組模式郵件模式 檢查是否安裝[root@localhost Server]# rpm -qa | grep tftp-servertftp-server-0.49-2 www.2cto.com 安裝掛載安裝檔案鏡像[root@localhost Server]# rpm -ivh tftp-0.49-2.i386.rpmwarning: tftp-0.49-2.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186Preparing... (100########################################### [100%]1:tftp ( 88########################################### [100%] [root@localhost Server]# rpm -ivh tftp-server-0.49-2.i386.rpmwarning: tftp-server-0.49-2.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186error: Failed dependencies:xinetd is needed by tftp-server-0.49-2.i386 [root@localhost Server]# rpm -ivh xinetd-2.3.14-10.el5.i386.rpmwarning: xinetd-2.3.14-10.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186Preparing... (100########################################### [100%]1:xinetd ( 1########################################### [100%] [root@localhost Server]# rpm -ivh tftp-server-0.49-2.i386.rpmwarning: tftp-server-0.49-2.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186Preparing... (100########################################### [100%]1:tftp-server ( 2########################################### [100%] 修改設定檔[root@localhost /]# vi /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 = dgramprotocol = udpwait = yesuser = rootserver = /usr/sbin/in.tftpdserver_args = -s /tftpbootdisable = no #修改此處per_source = 11cps = 100 2flags = IPv4} www.2cto.com 啟動伺服器[root@localhost ~]# /etc/init.d/xinetd start啟動 xinetd: ol. O 查看伺服器是否啟動成功[root@localhost ~]# netstat -a|grep tftpudp 0 0 *:tftp *:* 檢查連接埠[root@localhost ~]# netstat -anulp | grep 69udp 0 0 0.0.0.0:69 0.0.0.0:* 10548/xinetd 用戶端[root@localhost Server]# tftp(to) 192.168.1.26tftp> get /home注:/*常用以下檔案用作目錄檔案*/get ls.txt