<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://charlesreid1.com/w/index.php?action=history&amp;feed=atom&amp;title=MongoDB%2FConfiguration</id>
	<title>MongoDB/Configuration - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://charlesreid1.com/w/index.php?action=history&amp;feed=atom&amp;title=MongoDB%2FConfiguration"/>
	<link rel="alternate" type="text/html" href="https://charlesreid1.com/w/index.php?title=MongoDB/Configuration&amp;action=history"/>
	<updated>2026-06-19T23:43:34Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.12</generator>
	<entry>
		<id>https://charlesreid1.com/w/index.php?title=MongoDB/Configuration&amp;diff=25138&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;==MongoDB Configuration==  MongoDB documentation on configuration: https://docs.mongodb.com/manual/reference/configuration-options/  By default, MongoDB will not require a con...&quot;</title>
		<link rel="alternate" type="text/html" href="https://charlesreid1.com/w/index.php?title=MongoDB/Configuration&amp;diff=25138&amp;oldid=prev"/>
		<updated>2018-11-04T12:25:38Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==MongoDB Configuration==  MongoDB documentation on configuration: https://docs.mongodb.com/manual/reference/configuration-options/  By default, MongoDB will not require a con...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==MongoDB Configuration==&lt;br /&gt;
&lt;br /&gt;
MongoDB documentation on configuration: https://docs.mongodb.com/manual/reference/configuration-options/&lt;br /&gt;
&lt;br /&gt;
By default, MongoDB will not require a config file, and if you don&amp;#039;t specify one, it makes some weird decisions.&lt;br /&gt;
&lt;br /&gt;
To start mongodb with a specified config file, use the --config or -f options:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mongod --config /etc/mongod.conf&lt;br /&gt;
mongod -f /etc/mongod.conf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Core mongodb config sections:&lt;br /&gt;
* systemLog&lt;br /&gt;
* net&lt;br /&gt;
&lt;br /&gt;
===systemLog===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# default:&lt;br /&gt;
&lt;br /&gt;
systemLog:&lt;br /&gt;
  destination: file&lt;br /&gt;
  path: /var/log/mongodb/mongod.log&lt;br /&gt;
  logAppend: true&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
can also set verbosity (0-5):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
systemLog:&lt;br /&gt;
    destination: file&lt;br /&gt;
    path: /var/log/mongodb/mongod.log&lt;br /&gt;
    verbosity: 2&lt;br /&gt;
    logRotate: rename&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If using logrotate util, set &amp;lt;code&amp;gt;logRotate: reopen&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Can further customize log behavior for specific components (access, commands, etc.)&lt;br /&gt;
&lt;br /&gt;
===net===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
net:&lt;br /&gt;
    port: 27017&lt;br /&gt;
    bindIp: 10.0.0.1&lt;br /&gt;
    ipv6: True&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There are also several options for SSL. Those go into an ssl subsection of the net section of the config file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:MongoDB]]&lt;br /&gt;
[[Category:2018]]&lt;br /&gt;
[[Category:February 2018]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>