ubuntu nfs配置

2019-06-02  本文已影响0人  21世纪不靠谱艺术表演家
  1. sudo apt-get install nfs-kernel-server安装nfs。

  2. /etc/exports中加入:
    /home/topeet/minipcie_driver/nfs_share *(rw,sync,no_root_squash)
    前面是要共享的路径,*表示所有ip都可以访问。

  3. 重启服务:
    sudo /etc/init.d/portmap restart
    sudo /etc/init.d/nfs-kernel server restart

4.本地实验:
sudo mount -t nfs localhost:/home/topeet/minipcie_driver/nfs_share /mnt
成功后在/mnt可以看到共享目录下的内容。

上一篇 下一篇

猜你喜欢

热点阅读