sudo mongod --dbpath=/var/lib/mongodb
mongo
exit
解决方案:https://blog.csdn.net/qq_40272386/article/details/78328828