linux ubuntu搭建文件共享服务nfs
作者:互联网
服务端关键命令:
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