[英]bash: mongodb/bin/mongod : No such file or directory
I'm trying to install and run some basic commands on mongodb
from this tutorial (on page 4) . 我正在尝试从本教程(第4页)上在mongodb
上安装并运行一些基本命令。
So far, 至今,
home/user1
then renamed it to mongodb
我已将文件解压缩到以下位置的home/user1
然后将其重命名为mongodb
mongodb/data/db
. 我创建了一个名为mongodb.config的文件,其中包含要存储数据的文件夹的路径,即mongodb/data/db
。 But when I run the command to start the server: 但是当我运行命令来启动服务器时:
user1@user1-VirtualBox: ~$ mongodb/bin/mongod --dbpath ~mongodb/data/db
I'm getting the following error: 我收到以下错误:
bash: mongodb/bin/mongod : No such file or directory
Am I missing something? 我想念什么吗?
缺少“ /”,它应该是〜/ mongodb / data / db,而不是“〜mongodb / data / db”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.