淺析Linux下設置tftp服務器的方法
在很多時候,我們需要在多個系統(tǒng)中,進行設置tftp服務器的工作。那么今天我們主要講解一下Linux下設置tftp服務器的內容。由于主機使用的是windows7系統(tǒng),tftp32與之貌似不太兼容,因此從linux上搭建了一個tftp服務器,方法如下:
Linux下設置tftp服務器1. yum install tftp-server
Linux下設置tftp服務器2. 終端中輸入setup,在服務中將tftp打開
Linux下設置tftp服務器3. service iptables stop ,關閉防火墻
Linux下設置tftp服務器4. 修改文件/etc/xinetd.d/tftp。主要是設置TFTP服務器的根目錄,開啟服務。
修改后的文件如下:
service tftp {
socket_type =dgram
protocol =udp
wait =yes
user =root
server =/usr/sbin/in.tftpd
server_args =-s /home/app -c
disable =no
per_source =11
cps =100 2
flags =IPv4
}
Linux下設置tftp服務器5. mkdir /home/app
Linux下設置tftp服務器6. service xinetd restart
Linux下設置tftp服務器7.***就可以將文件放入/home/app下進行tftp傳輸了,不要忘記給文件權限哦,否則會提示permission denied