zoukankan      html  css  js  c++  java
  • 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]

  • 相关阅读:
    第三周作业
    第二周作业
    计算机基础学习心得
    第三次作业
    第2次作业(指针总结)
    2018(上)C高级第0次作业
    本学期最后一次作业 总结。
    第十四、十五周作业
    第七周作业
    第六周作业
  • 原文地址:https://www.cnblogs.com/amishe/p/3389862.html
Copyright © 2011-2022 走看看