ubuntu tftp服務(wù)器安裝的5個(gè)步驟
tftp服務(wù)器的內(nèi)容,不知道大家現(xiàn)在掌握的如何。那么對(duì)于它的一些基本的概念和原理,我們這里都不在進(jìn)行講解,這次,主要針對(duì)ubuntu tftp服務(wù)器安裝的內(nèi)容,進(jìn)行一下具體的闡述。
ubuntu tftp服務(wù)器安裝1. 安裝tftpd(tftp服務(wù)器)、tftp(tftp客戶(hù)端)以及xinetd(超級(jí)服務(wù)器)
- #sudo apt-get install tftpd tftp xinetd
ubuntu tftp服務(wù)器安裝2. 創(chuàng)建/etc/xinetd.d/tftp文件,并在文件中添加如下內(nèi)容
- service tftp
- {
- protocol = udp
- port = 69
- socket_type = dgram
- wait = yes
- user = nobody
- server = /usr/sbin/in.tftpd
- server_args = /tftpboot
- disable = no
- }
ubuntu tftp服務(wù)器安裝3. 創(chuàng)建tftp服務(wù)器的根目錄
- # sudo mkdir /tftpboot
- # sudo chmod -R 777 /tftpboot
- # sudo chown -R nobody /tftpboot
ubuntu tftp服務(wù)器安裝4. 通過(guò)xinetd超級(jí)服務(wù)器啟動(dòng)tftpd
- # sudo /etc/init.d/xinetd start
ubuntu tftp服務(wù)器安裝5. 測(cè)試
- # tftp 127.0.0.1 > get <filename in the /tftpboot>