系统相关
首页 > 系统相关> > linux ubuntu搭建文件共享服务nfs

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

实测可以成功

标签:linuxidc,kernel,文件共享,mnt,192.168,nfs,apt,linux
来源: https://www.cnblogs.com/qianxunman/p/15010260.html