You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
394 B
27 lines
394 B
#!/bin/bash
|
|
|
|
|
|
#Installation
|
|
dnf in -y nfs-server
|
|
|
|
#Services
|
|
systemctl enable --now nfs-server
|
|
|
|
#Firewall
|
|
firewall-cmd --permanent --add-service=nfs
|
|
firewall-cmd --permanent --add-service=rpc-bind
|
|
firewall-cmd --reload
|
|
|
|
|
|
|
|
#Publier
|
|
exportsfs -arv
|
|
|
|
|
|
#FSTAB bind
|
|
|
|
echo "#NFS" >> /etc/fstab
|
|
echo "/srcdir /export/tobeexported none bind,nofail,x-systemd.device-timeout=2 0 0" >> /etc/fstab
|
|
|
|
mount -a
|