parent
8348d8fbaa
commit
c90b5421cc
@ -0,0 +1,26 @@
|
||||
#!/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
|
||||
Loading…
Reference in new issue