mongodb 服务不能以 开头systemctl start mongodb.service
,它会要求输入密码。之后,当我尝试mongo
命令时,它会抛出:
MongoDB shell version v3.6.2
connecting to: mongodb://127.0.0.1:27017
2018-03-18T16:05:39.307+0700 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, in(checking socket for error after poll), reason: Connection refused
2018-03-18T16:05:39.307+0700 E QUERY [thread1] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed :
connect@src/mongo/shell/mongo.js:251:13
@(connect):1:6
exception: connect failed
我已经通过了所有 google page 1 解决方案,但什么也没做,我也尝试了另一个查询,但仍然对我不起作用,再次卸载和安装也没有用。我当前的操作系统发行版是 Linux Manjaro。
任何帮助表示赞赏。