Home > database >  Mongo introduction: how to configure the HTTP service
Mongo introduction: how to configure the HTTP service

Time:09-19

Mangodb version=3.6.2

description
Want to 127.0.0.1:28017 access to the mangodb online version of the logging system,

I use the following method (haven't solve) :
1. Mongod -- config F: \ softwares \ mongo \ mongo. Conf -- -- httpinterface
2. The mongod -- config F: \ softwares \ mongo \ mongo. Conf -- -- nohttpinterface
Error message is as follows:
Error parsing the command line: unrecognised option '- httpinterface'
Try 'mongod -- help' for more information

In the same way, nor in the mongo. Conf add httpinterface nohttpinterface==true or false,
An error similar to the

could you tell me how to open the HTTP, is because the version with the other orders?

CodePudding user response:

Deprecated since version 3.2: HTTP interface for directing a


This parameter is abandoned after 3.2

CodePudding user response:

reference 1st floor rucypli response:
Deprecated since version 3.2: HTTP interface for directing a


This parameter is abandoned after 3.2


How do you open the HTTP service that: excuse me? Or the default open?

CodePudding user response:

3.6 this version has no this function

CodePudding user response:

My version is 3.6.4 radar echoes captured in the configuration file way start the remote access, configuration method is YMAL format to write now, HTTP Settings are unavailable, actually also need not set this,
 systemLog: 
Destination: the file
LogAppend: true
Path:/var/log/mongo/mongod log # logPath
Storage:
DbPath:/var/lib/mongo # dbPath
Journal:
Enabled: true
ProcessManagement:
The fork: true # background
Net:
Port: 27017
BindIp: 0.0.0.0 # to monitor all IP

CodePudding user response:

4th floor truth! Is this
  • Related