标签:
宿主机产生嵌入式软件的机器
运行程序的是目标机上运行
基于网络的下载
目标机通过tftp下载到目标机
1. 安装tftp依赖xinetd
[root@cfm880 Packages]# rpm -ivh xinetd-2.3.14-34.el6.i686.rpm
2. 安装tftp
[root@cfm880 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服务
[root@cfm880 Packages]# /etc/init.d/xinetd restart
测试tftp服务
[root@cfm880 Packages]# /etc/init.d/iptables stop
iptables:清除防火墙规则: [确定]
iptables:将链设置为政策 ACCEPT:filter [确定]
iptables:正在卸载模块: [确定]
[root@cfm880 Packages]# setenforce permissive
在home目录下新建hello.c
输入tftp
用tftp32下载
2. nfs服务器网络文件系统
配置nfs文件服务器
root@cfm880 Packages]# vim /etc/exports
/tmp *(rw, sync, no_root_squash) # *所有用户, 192.168.1*网段
[root@cfm880 Packages]# /etc/init.d/nfs restart
标签:
原文地址:http://www.cnblogs.com/chengfangming/p/4803659.html