Wednesday, April 24, 2024
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 5969  / 2 Years ago, sun, july 24, 2022, 7:52:17

MongoDB has instructed me to change its command-line arguments:



REST is not enabled.  use --rest to turn on.


but this is all I know how to do:



sudo service mongodb start


Where should I apply this configuration change?


More From » command-line

 Answers
2

The various parameters that you wish to enable or disable can be set in the



/etc/mongodb.conf



config file.



All the command-line parameters can be mentioned in that file, and setting the values to true or false.



In your case, add a line as follows, preferably somewhere after the dbpath is mentioned.



rest = true



After each change to the configuration file, you need to restart the server to take effect:



sudo service mongodb restart



For more options, take a look at the documentation.


[#44956] Tuesday, July 26, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
oargrou

Total Points: 336
Total Questions: 105
Total Answers: 113

Location: Vietnam
Member since Sun, Oct 18, 2020
4 Years ago
oargrou questions
Thu, May 13, 21, 16:38, 3 Years ago
Wed, Jul 21, 21, 01:38, 3 Years ago
Sat, May 15, 21, 17:39, 3 Years ago
Tue, May 24, 22, 14:58, 2 Years ago
Sat, Mar 19, 22, 05:22, 2 Years ago
;