2008年12月15日 星期一

tftp (server/client) 安裝 (on RedHat 9)

tftp (server/client) 安裝


$rpm -qa|grep tftp测试有没有安装。
一、在Red Hat 9光碟上tftp-0.32-4.i386.rpm和tftp-server-0.32-4.i386.rpm
rpm -ivh tftp-server-0.32-4.i386.rpm
rpm -ivh tftp-0.32-4.i386.rpm
二,编辑/etc/xinet.d/tftp文件,修改
###
## -s 指定chroot
## -c 指定可建立資料
server_args= -s /tftpboot -c
disabled=no
三、創見資料文件夾,重新啟動XINETD
#mkdir /tftpboot
#chmod o+w /tftpboot或者chmod 777 /tftpboot
#/etc/init.d/xinetd restart或者service xinetd restart
測試e.g:
#tftp 172.21.5.113
tftp>get xxxx
tftp>put xxxx
tftp>h
--------------/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
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot -c
per_source = 11
cps = 100 2
flags = IPv4
}



資料來源

搜尋此網誌