ubuntu下nfs安装配置

 时间:2026-02-14 04:39:08

1、sudo apt-get install nfs-kernel-server 安装nfs。

ubuntu下nfs安装配置

2、sudo mkdir /home/share/nfs 建立nfs共享文件夹。

ubuntu下nfs安装配置

3、sudo vi /etc/exports 配置nfs。

ubuntu下nfs安装配置

4、在文档的最后一行加入/home/song/nfs *(rw,sync,no_root_squash,no_subtree_check),保存退出。

ubuntu下nfs安装配置

5、sudo /etc/init.d/rpcbind restart 重启rpcbind

sudo /etc/init.d/nfs-kernel-server restart 重启nfs

ubuntu下nfs安装配置

ubuntu下nfs安装配置

6、sudo mount -t nfs 192.168.1.122:/home/share/nfs 在目标机中挂载服务器的共享文件夹,把以上指令写到/etc/rc.local 当中可实现开机自动挂载

  • Xftp怎么显示欢迎消息
  • 如何在windows 8上搭建FTP服务器
  • linux如何安装binutils
  • 如何使用Powershell查看所有用户组
  • Fedora Linux怎么安装xfce4桌面环境
  • 热门搜索
    橙汁的做法 十三香小龙虾做法 荞麦面的做法 青椒的做法 便秘怎么办快速排便 怎么压缩图片大小 鸡翅的家常做法 烤箱烤鱼的做法大全 鸡腿饭的做法 糕点的做法大全