search

Home  >  Q&A  >  body text

mongodb shell 连接

今天装了一下mongodb ./mongo

怎么没法用命令行操作啊比如:show dbs;

我想大声告诉你我想大声告诉你2811 days ago621

reply all(1)I'll reply

  • 某草草

    某草草2017-05-02 09:24:07

    It looks like you rpminstalled it? Do you need to start the server first:

    netstat -pln | grep mongod

    Start if not started:

    sudo service mongod start

    In addition, you still need to check whether there are any errors after executing the shell like this. If there is any error message, please give it.

    reply
    0
  • Cancelreply