We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1、首先我们创建一个数据库存储目录 /data/db:
sudo mkdir -p /data/db
配置.cfg(data/db)文件之后再次启动即可
mongod --config F:\mongoDB\data\mongod.cfg --serviceName MongoDB --install(如果没有mongod.cfg文件,请看下面的配置) 注: 配置mongod.cfg文件-->直接在data目录下创建名为mongod.cfg文件,内容如下: ## 数据库文件目录 dbpath=F:/mongoDB/data ## 日志目录 logpath=F:/mongoDB/log/mongo.log diaglog=3
The text was updated successfully, but these errors were encountered:
ps aux | grep mongod 查看当前那个 pid 正在启动 mongod
Sorry, something went wrong.
No branches or pull requests
1、首先我们创建一个数据库存储目录 /data/db:
配置.cfg(data/db)文件之后再次启动即可
The text was updated successfully, but these errors were encountered: