mongo 启动方式
mongodb 使用命令行启动
#bin/mongod
--dbpath arg directory for datafiles - defaults to /data/db
--logpath arg log file to send write to instead of stdout - has to be a file, not directory
--fork fork server process
--port arg specify port number - 27017 by default
也可以使用配置文件
-f [ --config ] arg configuration file specifying additional options
# vi /data/mongo/mongodb.cnf
dbpath=/data/mongo/
logpath=/data/mongo/mongo.log
logappend=true
fork=true
port=27017
相关推荐
cuixingwudi 2020-04-15
youandme 2020-02-26
真新镇的涅法雷姆 2020-01-04
baixiaoshi 2019-12-11
TaoTaoFu 2019-11-19
yss0 2019-11-19
蜡笔小鑫爱看雪 2019-05-17
aaLiweipeng 2019-04-29
banana000 2019-07-01
dockerhc 2019-07-01
bluetears 2019-06-27
YangHuiLiang 2011-02-23
touchfuture 2019-06-26
engchina 2019-06-26
dalian 2019-04-13