fedora12 tftp服務(wù)器配置的方法
對于tftp服務(wù)器的內(nèi)容,我們雖然講解了不少,但是它配置的多樣性,還是讓不少人頭疼。現(xiàn)在我們就具體看看fedora12 tftp服務(wù)器配置的內(nèi)容吧。那么首先fedora12下為mini2440建立tftp服務(wù)器,yum install tftp-server xinetd tftp,修改/etc/xinetd.d/tftp文件,
- service tftp
- {
- socket_type = dgram
- protocol = udp
- wait = yes
- user = root
- server = /usr/sbin/in.tftpd
- server_args = -s /tftpboot -c
- disable = no
- per_source = 11
- cps = 100 2
- flags = IPv4
- }
server_args指出了服務(wù)器的文件夾。
建立目錄/tftpboot,并執(zhí)行chmod 0777 /tftpboot -R
執(zhí)行service xinetd start命令或service xinetd restart
fedora12 tftp服務(wù)器配置中,需要關(guān)閉防火墻。系統(tǒng)-管理-防火墻-選項(xiàng)-禁用防火墻-應(yīng)用
在根目錄下執(zhí)行
- tftp 192.168.0.102(本機(jī)IP)
- tftp> get a
- tftp> put a
- tftp> q
若能成功則表示tftp服務(wù)器正常。若出現(xiàn)了Permission denied的提示,則需要關(guān)閉防火墻或是在system-config-selinux中進(jìn)行修改,將系統(tǒng)默認(rèn)的應(yīng)用模式改為Disable,當(dāng)前應(yīng)用模式改為允許。
在U-boot的命令行中輸入printenv來打印環(huán)境變量,用setenv serverip 192.168.0.102命令來設(shè)置服務(wù)器IP。然后輸入saveenv來保存環(huán)境變量。
執(zhí)行tftp 30008000 u-boot-mini2440.bin或tftpboot 30008000 u-boot-mini2440.bin將u-boot-mini2440.bin加載到內(nèi)存0x30008000處。
到此fedora12 tftp服務(wù)器配置就結(jié)束了。