Centos上搭建能用于ok6410开发板的tftp服务器
来源:互联网 发布:淘宝密令红包不中 编辑:程序博客网 时间:2024/05/17 20:24
用rpm -qa | grep tftp 检查是否安装tftp服务器
如果没有。tftp:yum install tftp*(yum install xinetd tftp tftp-server)
Tftp的配置文件在 vi /etc/xinetd.d/tftp
修改tftpboot 的属性 chmod 777 -R tftpboot
修改下载路径;
重启:/etc/init.d/xinetd restart
检查tftp是否启动成功:netstat -a | grep tftp
在光盘上安装tftp服务器:
在centos的安装光盘中有RPM安装包,挂在光盘后进入到文件夹,找到相应的安装包。
]# cd /media/
[root@localhost media]# cd centos5-4\ i386\ DVD/
[root@localhost RHEL_5.1 i386 DVD]# ls
[root@localhost RHEL_5.1 i386 DVD]# cd Centos/
[root@localhost Server]# ls tftp*
tftp-0.42-3.1.i386.rpm tftp-server-0.42-3.1.i386.rpm
执行安装命令
[root@localhost Server]# rpm -ivh tftp-server-0.42-3.1.i386.rpm
warning: tftp-server-0.42-3.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
xinetd is needed by tftp-server-0.42-3.1.i386
提示需要安装xinetd,找到安装包并安装
[root@localhost Server]# ls xinet*
xinetd-2.3.14-10.el5.i386.rpm
[root@localhost Server]# rpm -ivh xinetd-2.3.14-10.el5.i386.rpm
warning: xinetd-2.3.14-10.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:xinetd ########################################### [100%]
再执行安装TFTP命令
[root@localhost Server]# rpm -ivh tftp-server-0.42-3.1.i386.rpm
warning: tftp-server-0.42-3.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:tftp-server ########################################### [100%]
建立tftp的主工作目录
[root@localhost Server]# mkdir /tftpboot
修改配置文件
[root@localhost Server]# vi /etc/xinetd.d/tftp
主要注意修改的两个地方:
# default: off
# description: The tftp server serves files using the trivial file transfer \
# protocol. The tftp protocol is often used to boot diskless \
# workstations, download configuration files to network-aware printers, \
# and to start the installation process for some operating systems.
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}
重启服务
[root@localhost Server]# /etc/init.d/xinetd restart
Stopping xinetd: [FAILED]
Starting xinetd: [ OK ]
查看是否启动
[root@localhost Server]# netstat -a |grep tftp
udp 0 0 *:tftp
- Centos上搭建能用于ok6410开发板的tftp服务器
- ubuntu11.10搭建tftp服务器以及在开发板上使用tftp
- ubuntu11.10搭建tftp服务器以及在开发板上使用tftp
- 嵌入式服务器SQLite3在ok6410开发板上的移植
- centos 6搭建tftp服务器
- CentOS下搭建tftp服务器
- ubuntu 10.04下的配置tftp服务器和开发板上tftp命令的使用方法
- tftp服务器的搭建
- OK6410开发板上的DM9000网卡
- vsftpd-2.3.4服务器在ok6410开发板上的移植
- vsftpd-2.3.4服务器在ok6410开发板上的移植
- 在开发板上使用tftp命令下载服务器上的文件
- ubuntu下开发环境配置:tftp服务器的搭建
- 在ubuntuserver上搭建tftp服务器
- 在U-boot上搭建TFTP服务器
- CentOS7上TFTP服务器简单搭建
- 迅为4412开发板学习笔记-TFTP服务器的搭建
- 开发板上tftp命令的使用
- Java路径问题最终解决方案—可定位所有资源的相对路径寻址 .
- 命令行下的android工程的创建、编译与打包
- 北大 ACM 1002 题 487-3279 的 菜鸟JAVA解
- shell awk专题笔记
- cocos2d-x 2.0.2 创建动画的方式(根据png/swf)
- Centos上搭建能用于ok6410开发板的tftp服务器
- url地址编码与解码
- 如何保证数据库完整性
- CXF 入门步骤 详解:HelloWorld接口发布
- 学习PHP遇到的乱码问题
- sharepoint 2007 Force SharePoint Document Unlocked / Checked In
- SendMessage 函数
- 安装setuptools的问题
- 程序员面试、算法研究、编程艺术、红黑树、数据挖掘5大经典原创系列集锦与总结