NFS
enable nfs
systemctl enable nfs-server
add directory to export: edit etc/exports
directory_to_export ip_to_allow(rw,insecure)
export all specified directory
sudo exportfs -arv
mount on macOS
sudo mount -t nfs -v source target
automatically mount on macOS
open
/etc/fstab
withsudo vifs
add into the file:
source /System/Volumes/Data/../Data/Volumes/target_name nfs rw,nolockd,resvport,hard,bg,intr,tcp,nfc,rsize=65536,wsize=65536
for pre-Catalina, it should be
source /../Volumes/target_name nfs rw,nolockd,resvport,hard,bg,intr,tcp,nfc,rsize=65536,wsize=65536