• VMware下利用ubuntu13.04建立嵌入式开发环境之五


    tftp和nfs服务器配置

    一、tftp服务器配置

    1、安装软件包

    1.1安装服务

       apt-get install tftpd-hpa

    1.2安装客户端

       apt-get install tftp-hpa

    2、建立配置文件

     gedit /etc/default/tftpd-hpa

    修改为下:

    TFTP_USERNAME="tftp"

    TFTP_DIRECTORY="home/Work"

    TFTP_ADDRESS="0.0.0.0:69"

    TFTP_OPTIONS="-l -c -s"

    #TFTP_OPTIONS="--secure"

    3 -l -c -s  含义

      -l --Listen

      -c --create

      -s --secure

    3、重启TFTP服务

    /etc/init.d/tftpd-hpa restart

    4、测试

       tftp localhost

       tftp>get filename

       tftp>put filename

      tftp->quit

    二、nfs服务器配置

    1、安装nfs:

        apt-get install nfs-common

        apt-get install nfs-kernel-server

    2、编辑/etc/exports

        添加一行:

           [共享目录]  [主机名或IP](参数,....)

    例如:/hone/nfs    *     (rw,sync)

    3、启动NFS

    /etc/init.d/nfs-kernel-server start (stop,restart)

    或者

    service portmap restart 

    service nfs-kernel-server restart

    4、客户端上挂在NFS

    mount [server IP]:[share dir] [local mount [piont]

    mount  [local mount [piont]

    mount -t nfs -o nolock [server IP]:[share dir] [local mount [piont]

  • 相关阅读:
    Dubbo本地开发技巧
    MongoDB基于GridFS管理文件
    Java MongoDB插入
    java MongoDB查询(二)复杂查询
    java MongoDB查询(一)简单查询
    Java 连接MongoDB
    MongoDB简述
    Bitmap.Config 详解
    ViewGroup 和 View 事件传递及处理小谈
    瀑布流ListView
  • 原文地址:https://www.cnblogs.com/amishe/p/3389862.html
Copyright © 2020-2023  润新知