Last active
August 5, 2025 15:56
-
-
Save parsibox/99786a2237a27d3874f3321ef341bd9e to your computer and use it in GitHub Desktop.
nfs server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt install nfs-kernel-server | |
sudo systemctl enable nfs-kernel-server | |
systemctl status nfs-kernel-server | |
sudo firewall-cmd --permanent --add-service=nfs | |
//centos | |
sudo yum install nfs-utils | |
sudo systemctl start nfs-server | |
sudo systemctl enable nfs-server | |
cat /etc/passwd | grep www-data | |
mkdir -p /www-config | |
chmod 0777 www-config | |
chown -R www-data:www-data /www-config/ | |
chown www-data:www-data /www-config/* | |
sudo nano /etc/exports | |
/srv/nfs/share 192.168.1.0/24(rw,sync,no_subtree_check) | |
cat /etc/exports | |
//apply | |
sudo exportfs -ra | |
//client | |
sudo apt install nfs-common | |
sudo yum install -y nfs-utils | |
sudo mount -t nfs 192.168.1.10:/srv/nfs/share /mnt | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
apt install inotify-tools rsync -y