zoukankan      html  css  js  c++  java
  • ubuntu 安装nfs 服务

    1. 安装nfs服务软件

    (1)服务器端 

    $sudo apt-get install nfs-kernel-server  rpcbind

    (2)客户端 (可以省略)

    $sudo apt-get install nfs-common

    2. 服务器端配置

    创建共享目录, mkdir -p /home/jason/nfs_dir 

    修改共享目录权限, chmod 777 /home/jason/nfs_dir

    修改配置文件,

    $sudo vim /etc/exports

    ###########添加服务器端共享目录,例如:

    /home/jason/nfs_dir  192.168.1.*(rw,sync,no_root_squash,no_subtree_check)

    $sudo exportfs -ra  #更新exports配置

    3. 服务器端启动服务

    $sudo rpcbind

    $service nfs-kernel-server restart

    4. 客户端挂载nfs

    # mount -t nfs 192.168.1.100:/home/jason/nfs_dir  /mnt

  • 相关阅读:
    Pycharm5使用
    flask 分页
    CRM
    课程项目
    vue的属性指令
    vue的文本指令
    vue实例
    vue使用
    ajax的json格式数据
    django知识点小结
  • 原文地址:https://www.cnblogs.com/gtarcoder/p/4590877.html
Copyright © 2011-2022 走看看