宿主机产生嵌入式软件的机器
运行程序的是目标机上运行
基于网络的下载
目标机通过tftp下载到目标机
1. 安装tftp依赖xinetd
[[email protected] Packages]# rpm -ivh xinetd-2.3.14-34.el6.i686.rpm
2. 安装tftp
[[email protected] Packages]# rpm -ivh tftp-server-0.49-7.el6.i686.rpm
3. 配置tftp
vim /etc/xinetd.d/tftp
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /home
disable = yes
per_source = 11
cps = 100 2
flags = IPv4
}
改为
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /home
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}
重启tftp服务
[[email protected] Packages]# /etc/init.d/xinetd restart
测试tftp服务
[[email protected] Packages]# /etc/init.d/iptables stop
iptables:清除防火墙规则: [确定]
iptables:将链设置为政策 ACCEPT:filter [确定]
iptables:正在卸载模块: [确定]
[[email protected] Packages]# setenforce permissive
在home目录下新建hello.c
输入tftp
用tftp32下载
2. nfs服务器网络文件系统
配置nfs文件服务器
[email protected] Packages]# vim /etc/exports
/tmp *(rw, sync, no_root_squash) # *所有用户, 192.168.1*网段
[[email protected] Packages]# /etc/init.d/nfs restart