淺析Linux下設(shè)置tftp服務(wù)器的方法
在很多時候,我們需要在多個系統(tǒng)中,進行設(shè)置tftp服務(wù)器的工作。那么今天我們主要講解一下Linux下設(shè)置tftp服務(wù)器的內(nèi)容。由于主機使用的是windows7系統(tǒng),tftp32與之貌似不太兼容,因此從linux上搭建了一個tftp服務(wù)器,方法如下:
Linux下設(shè)置tftp服務(wù)器1. yum install tftp-server
Linux下設(shè)置tftp服務(wù)器2. 終端中輸入setup,在服務(wù)中將tftp打開
Linux下設(shè)置tftp服務(wù)器3. service iptables stop ,關(guān)閉防火墻
Linux下設(shè)置tftp服務(wù)器4. 修改文件/etc/xinetd.d/tftp。主要是設(shè)置TFTP服務(wù)器的根目錄,開啟服務(wù)。
修改后的文件如下:
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下設(shè)置tftp服務(wù)器5. mkdir /home/app
Linux下設(shè)置tftp服務(wù)器6. service xinetd restart
Linux下設(shè)置tftp服務(wù)器7.***就可以將文件放入/home/app下進行tftp傳輸了,不要忘記給文件權(quán)限哦,否則會提示permission denied