Mongodb3.0开始在配置文件里废弃了参数httpinterface=true,如果用该参数启动会报如下错误:
Unrecognized option: httpinterface=true
try './mongod --help' for more information
新的版本可以用如下方式启动http服务
# ./mongod -f /data/mongodb/mongod.conf --httpinterface
about to fork child process, waiting until server is ready for connections.
forked process: 13741
child process started successfully, parent exiting
#
mongodb的http service端口为28017
# ss -lnt |grep 28017
LISTEN 0 128 *:28017 *:*
查看web页面

Unrecognized option: httpinterface=true
try './mongod --help' for more information
新的版本可以用如下方式启动http服务
# ./mongod -f /data/mongodb/mongod.conf --httpinterface
about to fork child process, waiting until server is ready for connections.
forked process: 13741
child process started successfully, parent exiting
#
mongodb的http service端口为28017
# ss -lnt |grep 28017
LISTEN 0 128 *:28017 *:*
查看web页面

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/15498/viewspace-2150900/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/15498/viewspace-2150900/
MongoDB 3.0 HTTP服务配置
本文介绍从MongoDB 3.0版本开始,如何正确配置HTTP服务。详细解释了旧参数httpinterface=true被废弃的原因及替代方案,并提供了启动HTTP服务的具体命令。
3274

被折叠的 条评论
为什么被折叠?



