Created
May 9, 2020 17:44
-
-
Save sierra-tango-echo/bd9872a502722881f5ccb086efcc2e33 to your computer and use it in GitHub Desktop.
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
yum -y install nfs-utils | |
sed -ie "s/^#\RPCNFSDCOUNT.*$/\RPCNFSDCOUNT=32/g" /etc/sysconfig/nfs | |
mkdir -p /export/users | |
mkdir -p /export/service | |
mkdir -p /export/gridware | |
mkdir -p /export/apps | |
mkdir -p /export/site | |
cat << EOF > /etc/exports | |
/export/users 10.110.1.0/24(rw,no_root_squash,no_subtree_check,sync) | |
/export/service 10.110.1.0/24(rw,no_root_squash,no_subtree_check,sync) | |
/export/gridware 10.110.1.0/24(rw,no_root_squash,no_subtree_check,sync) | |
/export/apps 10.110.1.0/24(rw,no_root_squash,no_subtree_check,sync) | |
/export/site 10.110.1.0/24(rw,no_root_squash,no_subtree_check,sync) | |
EOF | |
systemctl enable nfs | |
systemctl restart nfs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment