export.sh créer avec définitions de base
This commit is contained in:
1 parent
8348d8fbaa
commit
c90b5421cc
1 file changed
+26
@@ -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
|
||||
Reference in new issue
Block a user