Home  >  Article  >  Database  >  我改了 mongodb 的默认 port,无法启动了

我改了 mongodb 的默认 port,无法启动了

WBOY
WBOYOriginal
2016-06-07 16:31:111392browse

删除以后 mongodb.lock 。 然后 sudo service mongodb restart JavaScript execution failed: Error: couldn't connect to server 127.0.0.1:27017 at src/mongo/shell/mongo.js:L112 怎么破? 原文地址:我改了 mongodb 的默认 port,无法启动了, 感谢原作

删除以后mongodb.lock

然后sudo service mongodb restart

JavaScript execution failed: Error: couldn't connect to server 127.0.0.1:27017 at src/mongo/shell/mongo.js:L112

怎么破?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn