This commit is contained in:
2023-02-20 12:13:14 +07:00
parent 70ee9f1639
commit 9f310557f3
20 changed files with 594 additions and 0 deletions

12
3.RKE2/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.9.0/24(rw,sync,no_subtree_check,no_root_squash)" >> /etc/exports
systemctl restart nfs-kernel-server