mongoDB安装完成后,运行sudo
service mongod start
查看程序状态:ps ajx | grep mongod ,启动失败
查看失败信息提示,终端命令:tail -f /var/log/mongodb/mongod.log
错误提示:Failed to unlink socket file /tmp/mongodb-27017.sock errno:1 Operation not permitted
解决办法:手动删除sock文件,终端命令:rm /tmp/mongodb-27017.sock
查看结果:重启mangoDB