fedora12 tftp服務器配置的方法
對于tftp服務器的內容,我們雖然講解了不少,但是它配置的多樣性,還是讓不少人頭疼?,F在我們就具體看看fedora12 tftp服務器配置的內容吧。那么首先fedora12下為mini2440建立tftp服務器,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指出了服務器的文件夾。
建立目錄/tftpboot,并執行chmod 0777 /tftpboot -R
執行service xinetd start命令或service xinetd restart
fedora12 tftp服務器配置中,需要關閉防火墻。系統-管理-防火墻-選項-禁用防火墻-應用
在根目錄下執行
- tftp 192.168.0.102(本機IP)
- tftp> get a
- tftp> put a
- tftp> q
若能成功則表示tftp服務器正常。若出現了Permission denied的提示,則需要關閉防火墻或是在system-config-selinux中進行修改,將系統默認的應用模式改為Disable,當前應用模式改為允許。
在U-boot的命令行中輸入printenv來打印環境變量,用setenv serverip 192.168.0.102命令來設置服務器IP。然后輸入saveenv來保存環境變量。
執行tftp 30008000 u-boot-mini2440.bin或tftpboot 30008000 u-boot-mini2440.bin將u-boot-mini2440.bin加載到內存0x30008000處。
到此fedora12 tftp服務器配置就結束了。