sudo rm /var/lib/mongodb/mongod.lock
sudo mongod --dbpth <Your data path> --repair
sudo systemctl start mongod
如果啟動失敗則應該檢查 data 檔案夾的權限可以嘗試執行 sudo chown -R <Your data path> mongod:mongod

在本例中即 /lustre/scratch/chgwang/Mongo/mongoData
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/202827.html
標籤:NoSQL
上一篇:MySQL 之 索引
