先查看MongoDB的启动模式 ps -ef | grep mongod 命令行参数启动 如果查看到的mongod后面带-auth参数启动的 如:root 9564 1 0 06:28 ? 00:00:15 mongod -auth --bind_ip 127.0.0.1 --port 27017