zoukankan      html  css  js  c++  java
  • Linux下nfs服务器搭建

    在/etc目录下,做如下操作:

      (1)cd  /etc

        vi  exports

        /home  *(sync,rw,no_root_squash)
        /opt  *(sync,rw,no_root_squash)


      (2)重启nfs

        service nfs restart

      注意:防火墙的设置。如出现System Error: No route to host.则说明是防火墙开启所致。

      经过以上几步操作后,nfs也就建好了,也就是相当于windows中的共享了,下一步就可以mount了。

    附:/home  *(sync,rw,no_root_squash)参数介绍,参数之间用逗号隔开:

      /home       :需要共享的目录

      sync        :所有数据在请求时写入共享

      rw         :读写访问

      no_root_squash  :登入到NFS主机的用户如果是root用户,他就拥有root的权限.

  • 相关阅读:
    memento模式
    observe模式
    state模式
    Trie树的简单介绍和应用
    strategy模式
    全组和问题
    SRM 551 DIV2
    全排列问题
    TSE中关于分词的算法的改写最少切分
    template模式
  • 原文地址:https://www.cnblogs.com/xiehy/p/1891365.html
Copyright © 2011-2022 走看看