无法使用Mongo show命令,得到'show:command not found'错误
问题描述:
我有Mongo正在运行但无法使用mongo命令。当我输入show collections
时出现错误show: command not found
。我怎样才能解决这个问题?无法使用Mongo show命令,得到'show:command not found'错误
我安装了自制软件,所以我的mongo安装位于:/usr/local/Cellar/mongodb/3.0.6
,我的数据库位于/data /db
。
(我四处搜寻,但没有找到答案下面没有帮助:cant use mongo command, shows command not found on mac)
答
哦,哈哈。我必须打开Mongo shell(通过在终端中输入mongo
),而不是像我已经完成的那样使用mongod
来启动数据库。那好吧然后......我的问题解决了。
你的意思是使用nodejs标签吗? –
嗯......你是对的,删除。 –