This commit is contained in:
BoHung Chiu 2022-05-12 16:47:02 +08:00
parent 5146e22884
commit a01bec188e
1 changed files with 8 additions and 0 deletions

View File

@ -62,6 +62,14 @@ else
fi fi
sudo apt-get update sudo apt-get update
sudo apt-get install -y mongodb-org=4.4.11 mongodb-org-server=4.4.11 mongodb-org-shell=4.4.11 mongodb-org-mongos=4.4.11 mongodb-org-tools=4.4.11 sudo apt-get install -y mongodb-org=4.4.11 mongodb-org-server=4.4.11 mongodb-org-shell=4.4.11 mongodb-org-mongos=4.4.11 mongodb-org-tools=4.4.11
sudo service mongod restart
sleep 10
if [ -f /tmp/mongodb-27017.sock ]; then
echo "Mongo start success!"
else
echo "mongo not yet start!"
echo "Please check mongo status!"
fi
else else
echo "mongo not yet start!" echo "mongo not yet start!"
echo "Please check mongo status!" echo "Please check mongo status!"