##############################Deploy nfs########################
echo "start deploy nfs-server"

cat $basepath/package/exports > /etc/exports

systemctl restart rpcbind
systemctl enable rpcbind

systemctl restart nfs
systemctl enable nfs

rm -rf /root/STBVerify/
cp -r $basepath/package/S********y /root/
cd /root/********y/
chmod 777 P******ate/
chmod +x P*****m/
chmod +x P******am/*

rpcbindpid=`ps aux|grep rpcbind|grep -v "grep"|awk '{print $2}'`

if [ "$rpcbindpid" ];then
echo "success ! rpcbind is running now"
fi

nfspid=`ps aux|grep nfs|grep -v "grep"|awk '{print $2}'`

if [ "$nfspid" ];then
echo "success ! nfs-server is running now"
fi

  

相关文章:

  • 2021-10-11
  • 2021-07-29
  • 2022-01-13
  • 2021-07-04
  • 2022-12-23
  • 2021-11-20
  • 2022-01-03
  • 2021-12-14
猜你喜欢
  • 2021-12-17
  • 2021-12-29
  • 2021-12-19
  • 2021-05-22
  • 2022-02-22
相关资源
相似解决方案