随笔-nfs 主机A上挂载主机X的文件夹
1、主机X安装nfs服务
sudo apt install nfs-kernel-server -y`
2、并设置/etc/exports文件,添加
/data/documents 192.168.78.165(rw,sync,no_root_squash,no_subtree_check)
设置好后需要重启nfs服务:sudo service nfs-kernel-server restart
3、主机A上安装nfs-utils,输入mount -t nfs 192.168.78.230:/data/documents /mnt)
本文来自博客园,作者:LiYanbin,转载请注明原文链接:https://www.cnblogs.com/stellar-liyanbin/p/18637788

浙公网安备 33010602011771号