ITPub博客

首页 > 数据库 > NoSQL > MongoDB 3.4版本小技巧之如何开启http service

MongoDB 3.4版本小技巧之如何开启http service

原创 NoSQL 作者:chenfeng 时间:2018-02-06 16:45:52 0 删除 编辑
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页面


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/15498/viewspace-2150900/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
交流MySQL,PolarDB/PolarDB-X,PostgreSQL,MongoDB和Redis技术。

注册时间:2015-12-07

  • 博文量
    784
  • 访问量
    2691660