This commit is contained in:
2023-02-21 14:35:39 +07:00
parent 9f310557f3
commit 6b5474a48d
30 changed files with 276 additions and 26 deletions

12
4.NFS/nfs/nfs-server.sh Normal file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
# ubuntu 20.04
FOLDER=/mnt/data
apt update && apt install -y nfs-kernel-server
chown nobody:nogroup $FOLDER
echo "$FOLDER 192.168.20.0/24(rw,sync,no_subtree_check,no_root_squash)" >> /etc/exports
systemctl restart nfs-kernel-server