zoukankan      html  css  js  c++  java
  • Centos上搭建能用于ok6410开发板的tftp服务器

    rpm -qa | grep tftp 检查是否安装tftp服务器

    如果没有。tftpyum 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 

  • 相关阅读:
    《分析服务从入门到精通读书笔记》第五章、创建多维数据集之浏览数据(1)
    灵活运用SQL Server2008 SSIS变量
    SSIS几个通用属性
    [原创]Silverlight开发实践系列导航(提供源码)
    【转】Scott_ASP.NET MVC框架(第四部分) 处理表单编辑和提交场景
    C#数据结构(二)栈和队列
    C#数据结构(一)线性表
    django学习(一)
    谈谈电子商务网站的促销规则(定价策略)设计(三)
    GAE使用中的问题
  • 原文地址:https://www.cnblogs.com/start530/p/3834402.html
Copyright © 2011-2022 走看看