「Linux」- 搭建 NFS 服务(Debian/Ubuntu)

  CREATED BY JENKINSBOT

NFS 1.3.4-2.1ubuntu5.3 on Ubuntu 18.04 LTS

How to Install and Configure an NFS Server on Ubuntu 18.04
NFS share access – Permission denied – Super User

# 安装服务

apt install nfs-kernel-server
systemctl enable nfs-kernel-server.serivce
systemctl start nfs-kernel-server.serivce

# 部署服务

mkdir -p /mnt/nfs_share
cat >> /etc/exports <EOF
/mnt/nfs_share  192.168.43.0/24(rw,sync,no_subtree_check,no_root_squash)
EOF
exportfs -a

# 查看导出目录

showmount -e 127.0.0.1