linux ubuntu搭建文件共享服务nfs

https://www.linuxidc.com/Linux/2018-11/155331.htm

服务端关键命令:

apt install nfs-kernel-server
mkdir -p /mnt/linuxidc
chown nobody:nogroup /mnt/linuxidc
chmod 777 /mnt/linuxidc
vim /etc/exports # /mnt/linuxidc 192.168.182.0/24(rw,sync,no_subtree_check)
exportfs -a
systemctl restart nfs-kernel-server
ufw allow from 192.168.182.0/24 to any port nfs

客户端关键命令:

 apt-get install nfs-common
mkdir -p /mnt/linuxidc_client
mount 192.168.182.172:/mnt/linuxidc /mnt/linuxidc_client

实测可以成功

上一篇:Ubuntu下配置NFS


下一篇:Linux下使用LVM管理(扩展/缩小/删除)