对于tftp服务器的内容,我们虽然讲解了不少,但是它配置的多样性,还是让不少人头疼。现在我们就具体看看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
}
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
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
- 1.
- 2.
- 3.
- 4.
若能成功则表示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服务器配置就结束了。