summaryrefslogtreecommitdiff
path: root/debian/mongod.1
blob: 9774d30affc6b661c4c253083450af67a95f3bda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
.TH mongod 1
.SH MONGOD
.SH SYNOPSIS
\fBmongod\f1\f1 is the primary daemon process for the MongoDB
system. It handles data requests, manages data access, and performs
background management operations.
.PP
This document provides a complete overview of all command line options
for \fBmongod\f1\f1\&. These command line options are primarily useful
for testing: In common operation, use the \fBconfiguration file
options\f1 to control the behavior of
your database.
.PP
\fBConfiguration File Settings and Command\-Line Options Mapping\f1
.PP
Starting in version 4.0, MongoDB disables support for TLS 1.0
encryption on systems where TLS 1.1+ is available. For
more details, see \fBDisable TLS 1.0\f1\&.
.SH OPTIONS
.RS
.IP \(bu 2
MongoDB removes the \fB\-\-cpu\f1 command\-line option.
.RE
.RS
.IP \(bu 2
MongoDB removes the \fB\-\-serviceExecutor\f1 command\-line option and the
corresponding \fBnet.serviceExecutor\f1 configuration option.
.RE
.RS
.IP \(bu 2
MongoDB removes the \fB\-\-noIndexBuildRetry\f1 command\-line option
and the corresponding \fBstorage.indexBuildRetry\f1 option.
.RE
.RS
.IP \(bu 2
MongoDB deprecates the SSL options and instead adds new
corresponding TLS options.
.IP \(bu 2
MongoDB adds
\fB\-\-tlsClusterCAFile\f1\f1/\fBnet.tls.clusterCAFile\f1\f1\&. (Also available
in 3.4.18+, 3.6.9+, 4.0.3+)
.RE
.SS CORE OPTIONS
.PP
\fBmongod \-\-help\f1, \fBmongod \-h\f1
.RS
.PP
Returns information on the options and use of \fBmongod\f1\f1\&.
.RE
.PP
\fBmongod \-\-version\f1
.RS
.PP
Returns the \fBmongod\f1\f1 release number.
.RE
.PP
\fBmongod \-\-config\f1, \fBmongod \-f\f1
.RS
.PP
Specifies a configuration file for runtime configuration options. The
configuration file is the preferred method for runtime configuration of
\fBmongod\f1\f1\&. The options are equivalent to the command\-line
configuration options. See \fBConfiguration File Options\f1 for
more information.
.PP
Ensure the configuration file uses ASCII encoding. The \fBmongod\f1\f1
instance does not support configuration files with non\-ASCII encoding,
including UTF\-8.
.RE
.PP
\fBmongod \-\-configExpand\f1
.RS
.PP
\fIDefault\f1: none
.PP
Enables using \fBExpansion Directives\f1
in configuration files. Expansion directives allow you to set
externally sourced values for configuration file options.
.PP
\fB\-\-configExpand\f1\f1 supports the following expansion directives:
.RS
.IP \(bu 2
.RS
.IP \(bu 4
Value
.IP \(bu 4
Description
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fBnone\f1
.IP \(bu 4
Default. \fBmongod\f1\f1 does not expand expansion directives.
\fBmongod\f1\f1 fails to start if any configuration file settings
use expansion directives.
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fBrest\f1
.IP \(bu 4
\fBmongod\f1\f1 expands \fB__rest\f1 expansion directives when
parsing the configuration file.
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fBexec\f1
.IP \(bu 4
\fBmongod\f1\f1 expands \fB__exec\f1 expansion directives when
parsing the configuration file.
.RE
.RE
.PP
You can specify multiple expansion directives as a comma\-separated
list, e.g. \fBrest, exec\f1\&. If the configuration file contains
expansion directives not specified to \fB\-\-configExpand\f1\f1, the \fBmongod\f1\f1
returns an error and terminates.
.PP
See \fBExternally Sourced Configuration File Values\f1 for configuration files
for more information on expansion directives.
.RE
.PP
\fBmongod \-\-verbose\f1, \fBmongod \-v\f1
.RS
.PP
Increases the amount of internal reporting returned on standard output
or in log files. Increase the verbosity with the \fB\-v\f1 form by
including the option multiple times, (e.g. \fB\-vvvvv\f1\&.)
.PP
Starting in version 4.2, MongoDB includes the Debug verbosity level
(1\-5) in the \fBlog messages\f1\&. For example,
if the verbosity level is 2, MongoDB logs \fBD2\f1\&. In previous
versions, MongoDB log messages only specified \fBD\f1 for Debug level.
.RE
.PP
\fBmongod \-\-quiet\f1
.RS
.PP
Runs \fBmongod\f1\f1 in a quiet mode that attempts to limit the amount
of output.
.PP
This option suppresses:
.RS
.IP \(bu 2
output from \fBdatabase commands\f1
.IP \(bu 2
replication activity
.IP \(bu 2
connection accepted events
.IP \(bu 2
connection closed events
.RE
.RE
.PP
\fBmongod \-\-port\f1
.RS
.PP
\fIDefault\f1:
.RS
.IP \(bu 2
27017 if \fBmongod\f1\f1 is not a shard member or a config server member
.IP \(bu 2
27018 if \fBmongod\f1\f1 is a \fBshard member\f1\f1
.IP \(bu 2
27019 if \fBmongod\f1\f1 is a \fBconfig server member\f1\f1
.RE
.PP
The TCP port on which the MongoDB instance listens for
client connections.
.RE
.PP
\fBmongod \-\-bind_ip\f1
.RS
.PP
\fIDefault\f1: localhost
.PP
Starting in MongoDB 3.6, \fBmongod\f1\f1 bind to localhost
by default. See \fBDefault Bind to Localhost\f1\&.
.PP
The hostnames and/or IP addresses and/or full Unix domain socket
paths on which \fBmongod\f1\f1 should listen for client connections. You
may attach \fBmongod\f1\f1 to any interface. To bind to multiple
addresses, enter a list of comma\-separated values.
.PP
You can specify both IPv4 and IPv6 addresses, or hostnames that
resolve to an IPv4 or IPv6 address.
.PP
If specifying an IPv6 address \fIor\f1 a hostname that resolves to an
IPv6 address to \fB\-\-bind_ip\f1\f1, you must start \fBmongod\f1\f1 with
\fB\-\-ipv6\f1\f1 to enable IPv6 support. Specifying an IPv6 address
to \fB\-\-bind_ip\f1\f1 does not enable IPv6 support.
.PP
If specifying a
link\-local IPv6 address (https://en.wikipedia.org/wiki/Link\-local_address#IPv6)
(\fBfe80::/10\f1), you must append the
zone index (https://en.wikipedia.org/wiki/IPv6_address#Scoped_literal_IPv6_addresses_(with_zone_index))
to that address (i.e. \fBfe80::<address>%<adapter\-name>\f1).
.PP
To avoid configuration updates due to IP address changes, use DNS
hostnames instead of IP addresses. It is particularly important to
use a DNS hostname instead of an IP address when configuring replica
set members or sharded cluster members.
.PP
Use hostnames instead of IP addresses to configure clusters across a
split network horizon. Starting in MongoDB 5.0, nodes that are only
configured with an IP address will fail startup validation and will
not start.
.PP
Before binding to a non\-localhost (e.g. publicly accessible)
IP address, ensure you have secured your cluster from unauthorized
access. For a complete list of security recommendations, see
\fBSecurity Checklist\f1\&. At minimum, consider
\fBenabling authentication\f1 and
\fBhardening network infrastructure\f1\&.
.PP
For more information about IP Binding, refer to the
\fBIP Binding\f1 documentation.
.PP
To bind to all IPv4 addresses, enter \fB0.0.0.0\f1\&.
.PP
To bind to all IPv4 and IPv6 addresses, enter \fB::,0.0.0.0\f1 or
starting in MongoDB 4.2, an asterisk \fB"*"\f1 (enclose the asterisk in
quotes to avoid filename pattern expansion). Alternatively, use the
\fBnet.bindIpAll\f1\f1 setting.
.RS
.IP \(bu 2
\fB\-\-bind_ip\f1 and \fB\-\-bind_ip_all\f1 are mutually exclusive.
Specifying both options causes \fBmongod\f1\f1 to throw an error and
terminate.
.IP \(bu 2
The command\-line option \fB\-\-bind\f1 overrides the configuration
file setting \fBnet.bindIp\f1\f1\&.
.RE
.RE
.PP
\fBmongod \-\-bind_ip_all\f1
.RS
.PP
If specified, the \fBmongod\f1\f1 instance binds to all IPv4
addresses (i.e. \fB0.0.0.0\f1). If \fBmongod\f1\f1 starts with
\fB\-\-ipv6\f1\f1, \fB\-\-bind_ip_all\f1\f1 also binds to all IPv6 addresses
(i.e. \fB::\f1).
.PP
\fBmongod\f1\f1 only supports IPv6 if started with \fB\-\-ipv6\f1\f1\&. Specifying
\fB\-\-bind_ip_all\f1\f1 alone does not enable IPv6 support.
.PP
Before binding to a non\-localhost (e.g. publicly accessible)
IP address, ensure you have secured your cluster from unauthorized
access. For a complete list of security recommendations, see
\fBSecurity Checklist\f1\&. At minimum, consider
\fBenabling authentication\f1 and
\fBhardening network infrastructure\f1\&.
.PP
For more information about IP Binding, refer to the
\fBIP Binding\f1 documentation.
.PP
Alternatively, you can set the \fB\-\-bind_ip\f1 option to \fB::,0.0.0.0\f1
or, starting in MongoDB 4.2, to an asterisk \fB"*"\f1 (enclose the
asterisk in quotes to avoid filename pattern expansion).
.PP
\fB\-\-bind_ip\f1 and \fB\-\-bind_ip_all\f1 are mutually exclusive. That
is, you can specify one or the other, but not both.
.RE
.PP
\fBmongod \-\-clusterIpSourceAllowlist\f1
.RS
.PP
A list of IP addresses/CIDR (Classless Inter\-Domain Routing (https://tools.ietf.org/html/rfc4632)) ranges against which the
\fBmongod\f1\f1 validates authentication requests from other members of
the replica set and, if part of a sharded cluster, the \fBmongos\f1\f1
instances. The \fBmongod\f1\f1 verifies that the originating IP is
either explicitly in the list or belongs to a CIDR range in the list. If the
IP address is not present, the server does not authenticate the
\fBmongod\f1\f1 or \fBmongos\f1\f1\&.
.PP
\fB\-\-clusterIpSourceAllowlist\f1\f1 has no effect on a \fBmongod\f1\f1 started without
\fBauthentication\f1\&.
.PP
\fB\-\-clusterIpSourceAllowlist\f1\f1 accepts multiple comma\-separated IPv4/6 addresses or Classless
Inter\-Domain Routing (CIDR (https://tools.ietf.org/html/rfc4632)) ranges:
.PP
.EX
  mongod \-\-clusterIpSourceAllowlist 192.0.2.0/24,127.0.0.1,::1
.EE
.PP
Ensure \fB\-\-clusterIpSourceAllowlist\f1\f1 includes the IP address \fIor\f1 CIDR ranges that include the
IP address of each replica set member or \fBmongos\f1\f1 in the
deployment to ensure healthy communication between cluster components.
.RE
.PP
\fBmongod \-\-clusterIpSourceWhitelist\f1
.RS
.PP
\fIDeprecated in version 5.0:\f1
Use \fB\-\-clusterIpSourceAllowlist\f1\f1 instead.
.PP
A list of IP addresses/CIDR (Classless Inter\-Domain Routing (https://tools.ietf.org/html/rfc4632)) ranges against which the
\fBmongod\f1\f1 validates authentication requests from other members of
the replica set and, if part of a sharded cluster, the \fBmongos\f1\f1
instances. The \fBmongod\f1\f1 verifies that the originating IP is
either explicitly in the list or belongs to a CIDR range in the list. If the
IP address is not present, the server does not authenticate the
\fBmongod\f1\f1 or \fBmongos\f1\f1\&.
.PP
\fB\-\-clusterIpSourceWhitelist\f1\f1 has no effect on a \fBmongod\f1\f1 started without
\fBauthentication\f1\&.
.PP
\fB\-\-clusterIpSourceWhitelist\f1\f1 accepts multiple comma\-separated IPv4/6 addresses or Classless
Inter\-Domain Routing (CIDR (https://tools.ietf.org/html/rfc4632)) ranges:
.PP
.EX
  mongod \-\-clusterIpSourceWhitelist 192.0.2.0/24,127.0.0.1,::1
.EE
.PP
Ensure \fB\-\-clusterIpSourceWhitelist\f1\f1 includes the IP address \fIor\f1 CIDR ranges that include the
IP address of each replica set member or \fBmongos\f1\f1 in the
deployment to ensure healthy communication between cluster components.
.RE
.PP
\fBmongod \-\-ipv6\f1
.RS
.PP
Enables IPv6 support. \fBmongod\f1\f1 disables IPv6 support by default.
.PP
Setting \fB\-\-ipv6\f1\f1 does \fInot\f1 direct the \fBmongod\f1\f1 to listen on any
local IPv6 addresses or interfaces. To configure the \fBmongod\f1\f1 to
listen on an IPv6 interface, you must either:
.RS
.IP \(bu 2
Configure \fB\-\-bind_ip\f1\f1 with one or more IPv6 addresses or
hostnames that resolve to IPv6 addresses, \fBor\f1
.IP \(bu 2
Set \fB\-\-bind_ip_all\f1\f1 to \fBtrue\f1\&.
.RE
.RE
.PP
\fBmongod \-\-listenBacklog\f1
.RS
.PP
\fIDefault\f1: Target system \fBSOMAXCONN\f1 constant
.PP
The maximum number of connections that can exist in the listen
queue.
.PP
Consult your local system\(aqs documentation to understand the
limitations and configuration requirements before using this
parameter.
.PP
To prevent undefined behavior, specify a value for this
parameter between \fB1\f1 and the local system \fBSOMAXCONN\f1
constant.
.PP
The default value for the \fBlistenBacklog\f1 parameter is set at
compile time to the target system \fBSOMAXCONN\f1 constant.
\fBSOMAXCONN\f1 is the maximum valid value that is documented for
the \fIbacklog\f1 parameter to the \fIlisten\f1 system call.
.PP
Some systems may interpret \fBSOMAXCONN\f1 symbolically, and others
numerically. The actual \fIlisten backlog\f1 applied in practice may
differ from any numeric interpretation of the \fBSOMAXCONN\f1 constant
or argument to \fB\-\-listenBacklog\f1, and may also be constrained by
system settings like \fBnet.core.somaxconn\f1 on Linux.
.PP
Passing a value for the \fBlistenBacklog\f1 parameter that exceeds the
\fBSOMAXCONN\f1 constant for the local system is, by the letter of the
standards, undefined behavior. Higher values may be silently integer
truncated, may be ignored, may cause unexpected resource
consumption, or have other adverse consequences.
.PP
On systems with workloads that exhibit connection spikes, for which
it is empirically known that the local system can honor higher
values for the \fIbacklog\f1 parameter than the \fBSOMAXCONN\f1 constant,
setting the \fBlistenBacklog\f1 parameter to a higher value may reduce
operation latency as observed by the client by reducing the number
of connections which are forced into a backoff state.
.RE
.PP
\fBmongod \-\-maxConns\f1
.RS
.PP
The maximum number of simultaneous connections that \fBmongod\f1\f1 will
accept. This setting has no effect if it is higher than your operating
system\(aqs configured maximum connection tracking threshold.
.PP
Do not assign too low of a value to this option, or you will
encounter errors during normal application operation.
.RE
.PP
\fBmongod \-\-logpath\f1
.RS
.PP
Sends all diagnostic logging information to a log file instead of to
standard output or to the host\(aqs \fBsyslog\f1 system. MongoDB creates
the log file at the path you specify.
.PP
By default, MongoDB will move any existing log file rather than overwrite
it. To instead append to the log file, set the \fB\-\-logappend\f1\f1 option.
.RE
.PP
\fBmongod \-\-syslog\f1
.RS
.PP
Sends all logging output to the host\(aqs \fBsyslog\f1 system rather
than to standard output or to a log file (\fB\-\-logpath\f1\f1).
.PP
The \fB\-\-syslog\f1\f1 option is not supported on Windows.
.PP
The \fBsyslog\f1 daemon generates timestamps when it logs a message, not
when MongoDB issues the message. This can lead to misleading timestamps
for log entries, especially when the system is under heavy load. We
recommend using the \fB\-\-logpath\f1\f1 option for production systems to
ensure accurate timestamps.
.PP
Starting in version 4.2, MongoDB includes the \fBcomponent\f1 in its log messages to \fBsyslog\f1\&.
.PP
.EX
  ...  ACCESS   [repl writer worker 5] Unsupported modification to roles collection ...
.EE
.RE
.PP
\fBmongod \-\-syslogFacility\f1
.RS
.PP
\fIDefault\f1: user
.PP
Specifies the facility level used when logging messages to syslog.
The value you specify must be supported by your
operating system\(aqs implementation of syslog. To use this option, you
must  enable the \fB\-\-syslog\f1\f1 option.
.RE
.PP
\fBmongod \-\-logappend\f1
.RS
.PP
Appends new entries to the end of the existing log file when the \fBmongod\f1\f1
instance restarts. Without this option, \fBmongod\f1\f1 will back up the
existing log and create a new file.
.RE
.PP
\fBmongod \-\-logRotate\f1
.RS
.PP
\fIDefault\f1: rename
.PP
Determines the behavior for the \fBlogRotate\f1\f1 command when
rotating the server log and/or the audit log. Specify either
\fBrename\f1 or \fBreopen\f1:
.RS
.IP \(bu 2
\fBrename\f1 renames the log file.
.IP \(bu 2
\fBreopen\f1 closes and reopens the log file following the typical
Linux/Unix log rotate behavior. Use \fBreopen\f1 when using the
Linux/Unix logrotate utility to avoid log loss.
.IP
If you specify \fBreopen\f1, you must also use \fB\-\-logappend\f1\f1\&.
.RE
.RE
.PP
\fBmongod \-\-timeStampFormat\f1
.RS
.PP
\fIDefault\f1: iso8601\-local
.PP
The time format for timestamps in log messages. Specify one of the
following values:
.RS
.IP \(bu 2
.RS
.IP \(bu 4
Value
.IP \(bu 4
Description
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fBiso8601\-utc\f1
.IP \(bu 4
Displays timestamps in Coordinated Universal Time (UTC) in the
ISO\-8601 format. For example, for New York at the start of the
Epoch: \fB1970\-01\-01T00:00:00.000Z\f1
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fBiso8601\-local\f1
.IP \(bu 4
Displays timestamps in local time in the ISO\-8601
format. For example, for New York at the start of the Epoch:
\fB1969\-12\-31T19:00:00.000\-05:00\f1
.RE
.RE
.PP
Starting in MongoDB 4.4, \fB\-\-timeStampFormat\f1\f1 no longer supports \fBctime\f1\&.
An example of \fBctime\f1 formatted date is: \fBWed Dec 31
18:17:54.811\f1\&.
.RE
.PP
\fBmongod \-\-traceExceptions\f1
.RS
.PP
For internal diagnostic use only.
.RE
.PP
\fBmongod \-\-pidfilepath\f1
.RS
.PP
Specifies a file location to store the process ID (PID) of the \fBmongod\f1\f1
process. The user running the \fBmongod\f1 or \fBmongos\f1
process must be able to write to this path. If the \fB\-\-pidfilepath\f1\f1 option is not
specified, the process does not create a PID file. This option is generally
only useful in combination with the \fB\-\-fork\f1\f1 option.
.PP
On Linux, PID file management is generally the responsibility of
your distro\(aqs init system: usually a service file in the \fB/etc/init.d\f1
directory, or a systemd unit file registered with \fBsystemctl\f1\&. Only
use the \fB\-\-pidfilepath\f1\f1 option if you are not using one of these init
systems. For more information, please see the respective
\fBInstallation Guide\f1 for your operating system.
.PP
On macOS, PID file management is generally handled by \fBbrew\f1\&. Only use
the \fB\-\-pidfilepath\f1\f1 option if you are not using \fBbrew\f1 on your macOS system.
For more information, please see the respective
\fBInstallation Guide\f1 for your operating system.
.RE
.PP
\fBmongod \-\-keyFile\f1
.RS
.PP
Specifies the path to a key file that stores the shared secret
that MongoDB instances use to authenticate to each other in a
\fBsharded cluster\f1 or \fBreplica set\f1\&. \fB\-\-keyFile\f1\f1 implies
\fB\-\-auth\f1\f1\&. See \fBInternal/Membership Authentication\f1 for more
information.
.PP
Starting in MongoDB 4.2, \fBkeyfiles for internal membership
authentication\f1 use YAML format to allow for
multiple keys in a keyfile. The YAML format accepts content of:
.RS
.IP \(bu 2
a single key string (same as in earlier versions),
.IP \(bu 2
multiple key strings (each string must be enclosed in quotes), or
.IP \(bu 2
sequence of key strings.
.RE
.PP
The YAML format is compatible with the existing single\-key
keyfiles that use the text file format.
.RE
.PP
\fBmongod \-\-setParameter\f1
.RS
.PP
Specifies one of the MongoDB parameters described in
\fBMongoDB Server Parameters\f1\&. You can specify multiple \fBsetParameter\f1
fields.
.RE
.PP
\fBmongod \-\-nounixsocket\f1
.RS
.PP
Disables listening on the UNIX domain socket. \fB\-\-nounixsocket\f1\f1 applies only
to Unix\-based systems.
.PP
The \fBmongod\f1\f1 process
always listens on the UNIX socket unless one of the following is true:
.RS
.IP \(bu 2
\fB\-\-nounixsocket\f1\f1 is set
.IP \(bu 2
\fBnet.bindIp\f1\f1 is not set
.IP \(bu 2
\fBnet.bindIp\f1\f1 does not specify \fBlocalhost\f1 or its associated IP address
.RE
.PP
\fBmongod\f1\f1 installed from official \fB\&.deb\f1 and \fB\&.rpm\f1 packages
have the \fBbind_ip\f1 configuration set to \fB127.0.0.1\f1 by
default.
.RE
.PP
\fBmongod \-\-unixSocketPrefix\f1
.RS
.PP
\fIDefault\f1: /tmp
.PP
The path for the UNIX socket. \fB\-\-unixSocketPrefix\f1\f1 applies only
to Unix\-based systems.
.PP
If this option has no value, the
\fBmongod\f1\f1 process creates a socket with \fB/tmp\f1 as a prefix. MongoDB
creates and listens on a UNIX socket unless one of the following is true:
.RS
.IP \(bu 2
\fBnet.unixDomainSocket.enabled\f1\f1 is \fBfalse\f1
.IP \(bu 2
\fB\-\-nounixsocket\f1\f1 is set
.IP \(bu 2
\fBnet.bindIp\f1\f1 is not set
.IP \(bu 2
\fBnet.bindIp\f1\f1 does not specify \fBlocalhost\f1 or its associated IP address
.RE
.RE
.PP
\fBmongod \-\-filePermissions\f1
.RS
.PP
\fIDefault\f1: \fB0700\f1
.PP
Sets the permission for the UNIX domain socket file.
.PP
\fB\-\-filePermissions\f1\f1 applies only to Unix\-based systems.
.RE
.PP
\fBmongod \-\-fork\f1
.RS
.PP
Enables a \fBdaemon\f1 mode that runs the \fBmongod\f1\f1 process in the
background. By default \fBmongod\f1\f1 does not run as a daemon:
typically you will run \fBmongod\f1\f1 as a daemon, either by using
\fB\-\-fork\f1\f1 or by using a controlling process that handles the
daemonization process (e.g. as with \fBupstart\f1 and \fBsystemd\f1).
.PP
Using the \fB\-\-fork\f1\f1 option requires that you configure log
output for the \fBmongod\f1\f1 with one of the following:
.RS
.IP \(bu 2
\fB\-\-logpath\f1\f1
.IP \(bu 2
\fB\-\-syslog\f1\f1
.RE
.PP
The \fB\-\-fork\f1\f1 option is not supported on Windows.
.RE
.PP
\fBmongod \-\-auth\f1
.RS
.PP
Enables authorization to control user\(aqs access to database resources
and operations. When authorization is enabled, MongoDB requires all
clients to authenticate themselves first in order to determine the
access for the client.
.PP
Configure users via the \fBmongo shell\f1\&. If no users exist, the localhost interface
will continue to have access to the database until you create
the first user.
.PP
See \fBSecurity\f1
for more information.
.RE
.PP
\fBmongod \-\-noauth\f1
.RS
.PP
Disables authentication. Currently the default. Exists for future
compatibility and clarity.
.RE
.PP
\fBmongod \-\-transitionToAuth\f1
.RS
.PP
Allows the \fBmongod\f1\f1 to accept and create authenticated and
non\-authenticated connections to and from other \fBmongod\f1\f1
and \fBmongos\f1\f1 instances in the deployment. Used for
performing rolling transition of replica sets or sharded clusters
from a no\-auth configuration to \fBinternal authentication\f1\&. Requires specifying a \fBinternal
authentication\f1 mechanism such as
\fB\-\-keyFile\f1\f1\&.
.PP
For example, if using \fBkeyfiles\f1 for
\fBinternal authentication\f1, the \fBmongod\f1\f1 creates
an authenticated connection with any \fBmongod\f1\f1 or \fBmongos\f1\f1
in the deployment using a matching keyfile. If the security mechanisms do
not match, the \fBmongod\f1\f1 utilizes a non\-authenticated connection instead.
.PP
A \fBmongod\f1\f1 running with \fB\-\-transitionToAuth\f1\f1 does not enforce \fBuser access
controls\f1\&. Users may connect to your deployment without any
access control checks and perform read, write, and administrative operations.
.PP
A \fBmongod\f1\f1 running with \fBinternal authentication\f1 and \fIwithout\f1 \fB\-\-transitionToAuth\f1\f1 requires clients to connect
using \fBuser access controls\f1\&. Update clients to
connect to the \fBmongod\f1\f1 using the appropriate \fBuser\f1
prior to restarting \fBmongod\f1\f1 without \fB\-\-transitionToAuth\f1\f1\&.
.RE
.PP
\fBmongod \-\-sysinfo\f1
.RS
.PP
Returns diagnostic system information and then exits. The
information provides the page size, the number of physical pages,
and the number of available physical pages.
.RE
.PP
\fBmongod \-\-noscripting\f1
.RS
.PP
Disables the scripting engine.
.RE
.PP
\fBmongod \-\-notablescan\f1
.RS
.PP
Forbids operations that require a collection scan. See \fBnotablescan\f1\f1 for additional information.
.RE
.PP
\fBmongod \-\-shutdown\f1
.RS
.PP
The \fB\-\-shutdown\f1\f1 option cleanly and safely terminates the \fBmongod\f1\f1
process. When invoking \fBmongod\f1\f1 with this option you must set the
\fB\-\-dbpath\f1\f1 option either directly or by way of the
\fBconfiguration file\f1 and the
\fB\-\-config\f1\f1 option.
.PP
The \fB\-\-shutdown\f1\f1 option is available only on Linux systems.
.PP
For additional ways to shut down, see also \fBStop mongod\f1 Processes\f1\&.
.RE
.PP
\fBmongod \-\-redactClientLogData\f1
.RS
.PP
\fIAvailable in MongoDB Enterprise only.\f1
.PP
A \fBmongod\f1\f1 running with \fB\-\-redactClientLogData\f1\f1 redacts any message accompanying a given
log event before logging. This prevents the \fBmongod\f1\f1 from writing
potentially sensitive data stored on the database to the diagnostic log.
Metadata such as error or operation codes, line numbers, and source file
names are still visible in the logs.
.PP
Use \fB\-\-redactClientLogData\f1\f1 in conjunction with
\fBEncryption at Rest\f1 and
\fBTLS/SSL (Transport Encryption)\f1 to assist compliance with
regulatory requirements.
.PP
For example, a MongoDB deployment might store Personally Identifiable
Information (PII) in one or more collections. The \fBmongod\f1\f1 logs events
such as those related to CRUD operations, sharding metadata, etc. It is
possible that the \fBmongod\f1\f1 may expose PII as a part of these logging
operations. A \fBmongod\f1\f1 running with \fB\-\-redactClientLogData\f1\f1 removes any message
accompanying these events before being output to the log, effectively
removing the PII.
.PP
Diagnostics on a \fBmongod\f1\f1 running with \fB\-\-redactClientLogData\f1\f1 may be more difficult
due to the lack of data related to a log event. See the
\fBprocess logging\f1 manual page for an
example of the effect of \fB\-\-redactClientLogData\f1\f1 on log output.
.PP
On a running \fBmongod\f1\f1, use \fBsetParameter\f1\f1 with the
\fBredactClientLogData\f1\f1 parameter to configure this setting.
.RE
.PP
\fBmongod \-\-networkMessageCompressors\f1
.RS
.PP
\fIDefault\f1: snappy,zstd,zlib
.PP
Specifies the default compressor(s) to use for
communication between this \fBmongod\f1\f1 instance and:
.RS
.IP \(bu 2
other members of the deployment if the instance is part of a replica set or a sharded cluster
.IP \(bu 2
\fBmongosh\f1\f1
.IP \(bu 2
drivers that support the \fBOP_COMPRESSED\f1 message format.
.RE
.PP
MongoDB supports the following compressors:
.RS
.IP \(bu 2
\fBsnappy\f1
.IP \(bu 2
\fBzlib\f1 (Available starting in MongoDB 3.6)
.IP \(bu 2
\fBzstd\f1 (Available  starting in MongoDB 4.2)
.RE
.PP
\fBIn versions 3.6 and 4.0\f1, \fBmongod\f1\f1 and
\fBmongos\f1\f1 enable network compression by default with
\fBsnappy\f1 as the compressor.
.PP
\fBStarting in version 4.2\f1, \fBmongod\f1\f1 and
\fBmongos\f1\f1 instances default to both \fBsnappy,zstd,zlib\f1
compressors, in that order.
.PP
To disable network compression, set the value to \fBdisabled\f1\&.
.PP
Messages are compressed when both parties enable network
compression. Otherwise, messages between the parties are
uncompressed.
.PP
If you specify multiple compressors, then the order in which you list
the compressors matter as well as the communication initiator. For
example, if \fBmongosh\f1\f1 specifies the following network
compressors \fBzlib,snappy\f1 and the \fBmongod\f1\f1 specifies
\fBsnappy,zlib\f1, messages between \fBmongosh\f1\f1 and
\fBmongod\f1\f1 uses \fBzlib\f1\&.
.PP
If the parties do not share at least one common compressor, messages
between the parties are uncompressed. For example, if
\fBmongosh\f1\f1 specifies the network compressor
\fBzlib\f1 and \fBmongod\f1\f1 specifies \fBsnappy\f1, messages
between \fBmongosh\f1\f1 and \fBmongod\f1\f1 are not
compressed.
.RE
.PP
\fBmongod \-\-timeZoneInfo\f1
.RS
.PP
The full path from which to load the time zone database. If this option
is not provided, then MongoDB will use its built\-in time zone database.
.PP
The configuration file included with Linux and macOS packages sets the
time zone database path to \fB/usr/share/zoneinfo\f1 by default.
.PP
The built\-in time zone database is a copy of the Olson/IANA time zone
database (https://www.iana.org/time\-zones)\&. It is updated along with
MongoDB releases, but the time zone database release cycle
differs from the MongoDB release cycle. The most recent release of
the time zone database is available on our download site (https://downloads.mongodb.org/olson_tz_db/timezonedb\-latest.zip)\&.
.PP
.EX
  wget https://downloads.mongodb.org/olson_tz_db/timezonedb\-latest.zip
  unzip timezonedb\-latest.zip
  mongod \-\-timeZoneInfo timezonedb\-2017b/
.EE
.PP
MongoDB uses the third party timelib (https://github.com/derickr/timelib) library to provide accurate
conversions between timezones. Due to a recent update, \fBtimelib\f1
could create inaccurate time zone conversions in older versions of
MongoDB.
.PP
To explicitly link to the time zone database in versions of MongoDB
prior to 5.0, 4.4.7, 4.2.14, and 4.0.25, download the time zone
database (https://downloads.mongodb.org/olson_tz_db/timezonedb\-latest.zip)\&.
and use the \fBtimeZoneInfo\f1\f1 parameter.
.PP
\fBprocessManagement.timeZoneInfo\f1\f1\&.
.RE
.PP
\fBmongod \-\-outputConfig\f1
.RS
.PP
Outputs the \fBmongod\f1\f1 instance\(aqs configuration options, formatted
in YAML, to \fBstdout\f1 and exits the \fBmongod\f1\f1 instance. For
configuration options that uses \fBExternally Sourced Configuration File Values\f1,
\fB\-\-outputConfig\f1\f1 returns the resolved value for those options.
.PP
This may include any configured passwords or secrets previously
obfuscated through the external source.
.PP
For usage examples, see:
.RS
.IP \(bu 2
\fBOutput the Configuration File with Resolved Expansion Directive Values\f1
.IP \(bu 2
\fBConvert Command\-Line Options to YAML\f1
.RE
.RE
.SS FREE MONITORING
.PP
\fBmongod \-\-enableFreeMonitoring\f1
.RS
.PP
Available for MongoDB Community Edition.
.PP
Enables or disables \fBfree MongoDB Cloud monitoring\f1\&. \fB\-\-enableFreeMonitoring\f1\f1 accepts the following
values:
.RS
.IP \(bu 2
.RS
.IP \(bu 4
Value
.IP \(bu 4
Description
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fBruntime\f1
.IP \(bu 4
Default. You can enable or disable free monitoring during
runtime.
.IP
To enable or disable free monitoring during runtime, see
\fBdb.enableFreeMonitoring()\f1\f1 and
\fBdb.disableFreeMonitoring()\f1\f1\&.
.IP
To enable or disable free monitoring during runtime when
running with access control, users must have required
privileges. See \fBdb.enableFreeMonitoring()\f1\f1 and
\fBdb.disableFreeMonitoring()\f1\f1 for details.
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fBon\f1
.IP \(bu 4
Enables free monitoring at startup; i.e. registers for free
monitoring. When enabled at startup, you cannot disable free
monitoring during runtime.
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fBoff\f1
.IP \(bu 4
Disables free monitoring at startup, regardless of whether
you have previously registered for free monitoring.  When disabled at startup,
you cannot enable free monitoring during runtime.
.RE
.RE
.PP
Once enabled, the free monitoring state remains enabled until
explicitly disabled. That is, you do not need to re\-enable each time
you start the server.
.PP
For the corresponding configuration file setting, see
\fBcloud.monitoring.free.state\f1\f1\&.
.RE
.PP
\fBmongod \-\-freeMonitoringTag\f1
.RS
.PP
Available for MongoDB Community Edition.
.PP
Optional tag to describe environment context. The tag can be sent as
part of the \fBfree MongoDB Cloud monitoring\f1 registration at start up.
.PP
For the corresponding configuration file setting, see
\fBcloud.monitoring.free.tags\f1\f1\&.
.RE
.SS LDAP AUTHENTICATION OR AUTHORIZATION OPTIONS
.PP
\fBmongod \-\-ldapServers\f1
.RS
.PP
\fIAvailable in MongoDB Enterprise only.\f1
.PP
The LDAP server against which the \fBmongod\f1\f1 authenticates users or
determines what actions a user is authorized to perform on a given
database. If the LDAP server specified has any replicated instances,
you may specify the host and port of each replicated server in a
comma\-delimited list.
.PP
If your LDAP infrastructure partitions the LDAP directory over multiple LDAP
servers, specify \fIone\f1 LDAP server or any of its replicated instances to
\fB\-\-ldapServers\f1\f1\&. MongoDB supports following LDAP referrals as defined in RFC 4511
4.1.10 (https://www.rfc\-editor.org/rfc/rfc4511.txt)\&. Do not use \fB\-\-ldapServers\f1\f1
for listing every LDAP server in your infrastructure.
.PP
This setting can be configured on a running \fBmongod\f1\f1 using
\fBsetParameter\f1\f1\&.
.PP
If unset, \fBmongod\f1\f1 cannot use \fBLDAP authentication or authorization\f1\&.
.RE
.PP
\fBmongod \-\-ldapValidateLDAPServerConfig\f1
.RS
.PP
\fIAvailable in MongoDB Enterprise\f1
.PP
A flag that determines if the \fBmongod\f1\f1 instance checks
the availability of the \fBLDAP server(s)\f1\f1 as part of its startup:
.RS
.IP \(bu 2
If \fBtrue\f1, the \fBmongod\f1\f1 instance performs the
availability check and only continues to start up if the LDAP
server is available.
.IP \(bu 2
If \fBfalse\f1, the \fBmongod\f1\f1 instance skips the
availability check; i.e. the instance starts up even if the LDAP
server is unavailable.
.RE
.RE
.PP
\fBmongod \-\-ldapQueryUser\f1
.RS
.PP
\fIAvailable in MongoDB Enterprise only.\f1
.PP
The identity with which \fBmongod\f1\f1 binds as, when connecting to or
performing queries on an LDAP server.
.PP
Only required if any of the following are true:
.RS
.IP \(bu 2
Using \fBLDAP authorization\f1\&.
.IP \(bu 2
Using an LDAP query for \fBusername transformation\f1\f1\&.
.IP \(bu 2
The LDAP server disallows anonymous binds
.RE
.PP
You must use \fB\-\-ldapQueryUser\f1\f1 with \fB\-\-ldapQueryPassword\f1\f1\&.
.PP
If unset, \fBmongod\f1\f1 will not attempt to bind to the LDAP server.
.PP
This setting can be configured on a running \fBmongod\f1\f1 using
\fBsetParameter\f1\f1\&.
.PP
Windows MongoDB deployments can use \fB\-\-ldapBindWithOSDefaults\f1\f1
instead of \fB\-\-ldapQueryUser\f1\f1 and \fB\-\-ldapQueryPassword\f1\f1\&. You cannot specify
both \fB\-\-ldapQueryUser\f1\f1 and \fB\-\-ldapBindWithOSDefaults\f1\f1 at the same time.
.RE
.PP
\fIAvailable in MongoDB Enterprise only.\f1
.PP
The password used to bind to an LDAP server when using
\fB\-\-ldapQueryUser\f1\f1\&. You must use \fB\-\-ldapQueryPassword\f1\f1 with
\fB\-\-ldapQueryUser\f1\f1\&.
.PP
If not set, \fBmongod\f1\f1 does not attempt to bind to the LDAP server.
.PP
You can configure this setting on a running \fBmongod\f1\f1 using
\fBsetParameter\f1\f1\&.
.PP
Starting in MongoDB 4.4, the \fBldapQueryPassword\f1
\fBsetParameter\f1\f1 command accepts either a string or
an array of strings. If \fBldapQueryPassword\f1 is set to an array, MongoDB tries
each password in order until one succeeds. Use a password array to roll over the
LDAP account password without downtime.
.PP
Windows MongoDB deployments can use \fB\-\-ldapBindWithOSDefaults\f1\f1
instead of \fB\-\-ldapQueryUser\f1\f1 and \fB\-\-ldapQueryPassword\f1\f1\&.
You cannot specify both \fB\-\-ldapQueryPassword\f1\f1 and
\fB\-\-ldapBindWithOSDefaults\f1\f1 at the same time.
.PP
\fBmongod \-\-ldapBindWithOSDefaults\f1
.RS
.PP
\fIDefault\f1: false
.PP
Available in MongoDB Enterprise for the Windows platform only.
.PP
Allows \fBmongod\f1\f1 to authenticate, or bind, using your Windows login
credentials when connecting to the LDAP server.
.PP
Only required if:
.RS
.IP \(bu 2
Using \fBLDAP authorization\f1\&.
.IP \(bu 2
Using an LDAP query for \fBusername transformation\f1\f1\&.
.IP \(bu 2
The LDAP server disallows anonymous binds
.RE
.PP
Use \fB\-\-ldapBindWithOSDefaults\f1\f1 to replace \fB\-\-ldapQueryUser\f1\f1 and
\fB\-\-ldapQueryPassword\f1\f1\&.
.RE
.PP
\fBmongod \-\-ldapBindMethod\f1
.RS
.PP
\fIDefault\f1: simple
.PP
\fIAvailable in MongoDB Enterprise only.\f1
.PP
The method \fBmongod\f1\f1 uses to authenticate to an LDAP server.
Use with \fB\-\-ldapQueryUser\f1\f1 and \fB\-\-ldapQueryPassword\f1\f1 to
connect to the LDAP server.
.PP
\fB\-\-ldapBindMethod\f1\f1 supports the following values:
.RS
.IP \(bu 2
\fBsimple\f1 \- \fBmongod\f1\f1 uses simple authentication.
.IP \(bu 2
\fBsasl\f1 \- \fBmongod\f1\f1 uses SASL protocol for authentication
.RE
.PP
If you specify \fBsasl\f1, you can configure the available SASL mechanisms
using \fB\-\-ldapBindSaslMechanisms\f1\f1\&. \fBmongod\f1\f1 defaults to
using \fBDIGEST\-MD5\f1 mechanism.
.RE
.PP
\fBmongod \-\-ldapBindSaslMechanisms\f1
.RS
.PP
\fIDefault\f1: DIGEST\-MD5
.PP
\fIAvailable in MongoDB Enterprise only.\f1
.PP
A comma\-separated list of SASL mechanisms \fBmongod\f1\f1 can
use when authenticating to the LDAP server. The \fBmongod\f1\f1 and the
LDAP server must agree on at least one mechanism. The \fBmongod\f1\f1
dynamically loads any SASL mechanism libraries installed on the host
machine at runtime.
.PP
Install and configure the appropriate libraries for the selected
SASL mechanism(s) on both the \fBmongod\f1\f1 host and the remote
LDAP server host. Your operating system may include certain SASL
libraries by default. Defer to the documentation associated with each
SASL mechanism for guidance on installation and configuration.
.PP
If using the \fBGSSAPI\f1 SASL mechanism for use with
\fBKerberos Authentication\f1, verify the following for the
\fBmongod\f1\f1 host machine:
.PP
\fBLinux\f1\f1
.RS
.RS
.IP \(bu 2
The \fBKRB5_CLIENT_KTNAME\f1 environment
variable resolves to the name of the client \fBLinux Keytab Files\f1
for the host machine. For more on Kerberos environment
variables, please defer to the
Kerberos documentation (https://web.mit.edu/kerberos/krb5\-1.13/doc/admin/env_variables.html)\&.
.IP \(bu 2
The client keytab includes a
\fBUser Principal\f1 for the \fBmongod\f1\f1 to use when
connecting to the LDAP server and execute LDAP queries.
.RE
.RE
.PP
\fBWindows\f1\f1
.RS
.PP
If connecting to an Active Directory server, the Windows
Kerberos configuration automatically generates a
Ticket\-Granting\-Ticket (https://msdn.microsoft.com/en\-us/library/windows/desktop/aa380510(v=vs.85).aspx)
when the user logs onto the system. Set \fB\-\-ldapBindWithOSDefaults\f1\f1 to
\fBtrue\f1 to allow \fBmongod\f1\f1 to use the generated credentials when
connecting to the Active Directory server and execute queries.
.RE
.PP
Set \fB\-\-ldapBindMethod\f1\f1 to \fBsasl\f1 to use this option.
.PP
For a complete list of SASL mechanisms see the
IANA listing (http://www.iana.org/assignments/sasl\-mechanisms/sasl\-mechanisms.xhtml)\&.
Defer to the documentation for your LDAP or Active Directory
service for identifying the SASL mechanisms compatible with the
service.
.PP
MongoDB is not a source of SASL mechanism libraries, nor
is the MongoDB documentation a definitive source for
installing or configuring any given SASL mechanism. For
documentation and support, defer to the SASL mechanism
library vendor or owner.
.PP
For more information on SASL, defer to the following resources:
.RS
.IP \(bu 2
For Linux, please see the Cyrus SASL documentation (https://www.cyrusimap.org/sasl/)\&.
.IP \(bu 2
For Windows, please see the Windows SASL documentation (https://msdn.microsoft.com/en\-us/library/cc223500.aspx)\&.
.RE
.RE
.PP
\fBmongod \-\-ldapTransportSecurity\f1
.RS
.PP
\fIDefault\f1: tls
.PP
\fIAvailable in MongoDB Enterprise only.\f1
.PP
By default, \fBmongod\f1\f1 creates a TLS/SSL secured connection to the LDAP
server.
.PP
For Linux deployments, you must configure the appropriate TLS Options in
\fB/etc/openldap/ldap.conf\f1 file. Your operating system\(aqs package manager
creates this file as part of the MongoDB Enterprise installation, via the
\fBlibldap\f1 dependency. See the documentation for \fBTLS Options\f1 in the
ldap.conf OpenLDAP documentation (http://www.openldap.org/software/man.cgi?query=ldap.conf&manpath=OpenLDAP+2.4\-Release)
for more complete instructions.
.PP
For Windows deployment, you must add the LDAP server CA certificates to the
Windows certificate management tool. The exact name and functionality of the
tool may vary depending on operating system version. Please see the
documentation for your version of Windows for more information on
certificate management.
.PP
Set \fB\-\-ldapTransportSecurity\f1\f1 to \fBnone\f1 to disable TLS/SSL between \fBmongod\f1\f1 and the LDAP
server.
.PP
Setting \fB\-\-ldapTransportSecurity\f1\f1 to \fBnone\f1 transmits plaintext information and possibly
credentials between \fBmongod\f1\f1 and the LDAP server.
.RE
.PP
\fBmongod \-\-ldapTimeoutMS\f1
.RS
.PP
\fIDefault\f1: 10000
.PP
\fIAvailable in MongoDB Enterprise only.\f1
.PP
The amount of time in milliseconds \fBmongod\f1\f1 should wait for an LDAP server
to respond to a request.
.PP
Increasing the value of \fB\-\-ldapTimeoutMS\f1\f1 may prevent connection failure between the
MongoDB server and the LDAP server, if the source of the failure is a
connection timeout. Decreasing the value of \fB\-\-ldapTimeoutMS\f1\f1 reduces the time
MongoDB waits for a response from the LDAP server.
.PP
This setting can be configured on a running \fBmongod\f1\f1 using
\fBsetParameter\f1\f1\&.
.RE
.PP
\fBmongod \-\-ldapUserToDNMapping\f1
.RS
.PP
\fIAvailable in MongoDB Enterprise only.\f1
.PP
Maps the username provided to \fBmongod\f1\f1 for authentication to a LDAP
Distinguished Name (DN). You may need to use \fB\-\-ldapUserToDNMapping\f1\f1 to transform a
username into an LDAP DN in the following scenarios:
.RS
.IP \(bu 2
Performing LDAP authentication with simple LDAP binding, where users
authenticate to MongoDB with usernames that are not full LDAP DNs.
.IP \(bu 2
Using an \fBLDAP authorization query template\f1\f1 that requires a DN.
.IP \(bu 2
Transforming the usernames of clients authenticating to Mongo DB using
different authentication mechanisms (e.g. x.509, kerberos) to a full LDAP
DN for authorization.
.RE
.PP
\fB\-\-ldapUserToDNMapping\f1\f1 expects a quote\-enclosed JSON\-string representing an ordered array
of documents. Each document contains a regular expression \fBmatch\f1 and
either a \fBsubstitution\f1 or \fBldapQuery\f1 template used for transforming the
incoming username.
.PP
Each document in the array has the following form:
.PP
.EX
  {
    match: "<regex>"
    substitution: "<LDAP DN>" | ldapQuery: "<LDAP Query>"
  }
.EE
.RS
.IP \(bu 2
.RS
.IP \(bu 4
Field
.IP \(bu 4
Description
.IP \(bu 4
Example
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fBmatch\f1
.IP \(bu 4
An ECMAScript\-formatted regular expression (regex) to match against a
provided username. Each parenthesis\-enclosed section represents a
regex capture group used by \fBsubstitution\f1 or \fBldapQuery\f1\&.
.IP \(bu 4
\fB"(.+)ENGINEERING"\f1
\fB"(.+)DBA"\f1
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fBsubstitution\f1
.IP \(bu 4
An LDAP distinguished name (DN) formatting template that converts the
authentication name matched by the \fBmatch\f1 regex into a LDAP DN.
Each curly bracket\-enclosed numeric value is replaced by the
corresponding regex capture group (http://www.regular\-expressions.info/refcapture.html) extracted
from the authentication username via the \fBmatch\f1 regex.
.IP
The result of the substitution must be an RFC4514 (https://www.ietf.org/rfc/rfc4514.txt) escaped string.
.IP \(bu 4
\fB"cn={0},ou=engineering,
dc=example,dc=com"\f1
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fBldapQuery\f1
.IP \(bu 4
A LDAP query formatting template that inserts the authentication
name matched by the \fBmatch\f1 regex into an LDAP query URI encoded
respecting RFC4515 and RFC4516. Each curly bracket\-enclosed numeric
value is replaced by the corresponding regex capture group (http://www.regular\-expressions.info/refcapture.html) extracted
from the authentication username via the \fBmatch\f1 expression.
\fBmongod\f1\f1 executes the query against the LDAP server to retrieve
the LDAP DN for the authenticated user. \fBmongod\f1\f1 requires
exactly one returned result for the transformation to be
successful, or \fBmongod\f1\f1 skips this transformation.
.IP \(bu 4
\fB"ou=engineering,dc=example,
dc=com??one?(user={0})"\f1
.RE
.RE
.PP
An explanation of  RFC4514 (https://www.ietf.org/rfc/rfc4514.txt),
RFC4515 (https://tools.ietf.org/search/rfc4515),
RFC4516 (https://tools.ietf.org/html/rfc4516), or LDAP queries is out
of scope for the MongoDB Documentation. Please review the RFC directly or
use your preferred LDAP resource.
.PP
For each document in the array, you must use either \fBsubstitution\f1 or
\fBldapQuery\f1\&. You \fIcannot\f1 specify both in the same document.
.PP
When performing authentication or authorization, \fBmongod\f1\f1 steps through
each document in the array in the given order, checking the authentication
username against the \fBmatch\f1 filter.  If a match is found,
\fBmongod\f1\f1 applies the transformation and uses the output for
authenticating the user. \fBmongod\f1\f1 does not check the remaining documents
in the array.
.PP
If the given document does not match the provided authentication
name, \fBmongod\f1\f1 continues through the list of documents
to find additional matches. If no matches are found in any document,
or the transformation the document describes fails,
\fBmongod\f1\f1 returns an error.
.PP
Starting in MongoDB 4.4, \fBmongod\f1\f1 also returns an error
if one of the transformations cannot be evaluated due to networking
or authentication failures to the LDAP server. \fBmongod\f1\f1
rejects the connection request and does not check the remaining
documents in the array.
.PP
Starting in MongoDB 5.0, \fB\-\-ldapUserToDNMapping\f1\f1
accepts an empty string \fB""\f1 or empty array \fB[ ]\f1 in place of a
mapping documnent. If providing an empty string or empty array to
\fB\-\-ldapUserToDNMapping\f1\f1, MongoDB will map the
authenticated username as the LDAP DN. Previously, providing an
empty mapping document would cause mapping to fail.
.PP
The following shows two transformation documents. The first
document matches against any string ending in \fB@ENGINEERING\f1, placing
anything preceeding the suffix into a regex capture group. The
second document matches against any string ending in \fB@DBA\f1, placing
anything preceeding the suffix into a regex capture group.
.PP
.EX
  "[
     {
        match: "(.+)@ENGINEERING.EXAMPLE.COM",
        substitution: "cn={0},ou=engineering,dc=example,dc=com"
     },
     {
        match: "(.+)@DBA.EXAMPLE.COM",
        ldapQuery: "ou=dba,dc=example,dc=com??one?(user={0})"
  
     }
  
  ]"
.EE
.PP
A user with username \fBalice@ENGINEERING.EXAMPLE.COM\f1 matches the first
document. The regex capture group \fB{0}\f1 corresponds to the string
\fBalice\f1\&. The resulting output is the DN
\fB"cn=alice,ou=engineering,dc=example,dc=com"\f1\&.
.PP
A user with username \fBbob@DBA.EXAMPLE.COM\f1 matches the second document.
The regex capture group \fB{0}\f1 corresponds to the string \fBbob\f1\&.  The
resulting output is the LDAP query
\fB"ou=dba,dc=example,dc=com??one?(user=bob)"\f1\&. \fBmongod\f1\f1 executes this
query against the LDAP server, returning the result
\fB"cn=bob,ou=dba,dc=example,dc=com"\f1\&.
.PP
If \fB\-\-ldapUserToDNMapping\f1\f1 is unset, \fBmongod\f1\f1 applies no transformations to the username
when attempting to authenticate or authorize a user against the LDAP server.
.PP
This setting can be configured on a running \fBmongod\f1\f1 using the
\fBsetParameter\f1\f1 database command.
.RE
.PP
\fBmongod \-\-ldapAuthzQueryTemplate\f1
.RS
.PP
\fIAvailable in MongoDB Enterprise only.\f1
.PP
A relative LDAP query URL formatted conforming to RFC4515 (https://tools.ietf.org/search/rfc4515) and RFC4516 (https://tools.ietf.org/html/rfc4516) that \fBmongod\f1\f1 executes to obtain
the LDAP groups to which the authenticated user belongs to. The query is
relative to the host or hosts specified in \fB\-\-ldapServers\f1\f1\&.
.PP
In the URL, you can use the following substituion tokens:
.RS
.IP \(bu 2
.RS
.IP \(bu 4
Substitution Token
.IP \(bu 4
Description
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fB{USER}\f1
.IP \(bu 4
Substitutes the authenticated username, or the
\fBtransformed\f1\f1
username if a \fBusername mapping\f1\f1 is specified.
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fB{PROVIDED_USER}\f1
.IP \(bu 4
Substitutes the supplied username, i.e. before either
authentication or \fBLDAP transformation\f1\f1\&.
.RE
.RE
.PP
When constructing the query URL, ensure that the order of LDAP parameters
respects RFC4516:
.PP
.EX
  [ dn  [ ? [attributes] [ ? [scope] [ ? [filter] [ ? [Extensions] ] ] ] ] ]
.EE
.PP
If your query includes an attribute, \fBmongod\f1\f1 assumes that the query
retrieves a the DNs which this entity is member of.
.PP
If your query does not include an attribute, \fBmongod\f1\f1 assumes
the query retrieves all entities which the user is member of.
.PP
For each LDAP DN returned by the query, \fBmongod\f1\f1 assigns the authorized
user a corresponding role on the \fBadmin\f1 database. If a role on the on the
\fBadmin\f1 database exactly matches the DN, \fBmongod\f1\f1 grants the user the
roles and privileges assigned to that role. See the
\fBdb.createRole()\f1\f1 method for more information on creating roles.
.PP
This LDAP query returns any groups listed in the LDAP user object\(aqs
\fBmemberOf\f1 attribute.
.PP
.EX
  "{USER}?memberOf?base"
.EE
.PP
Your LDAP configuration may not include the \fBmemberOf\f1 attribute as part
of the user schema, may possess a different attribute for reporting group
membership, or may not track group membership through attributes.
Configure your query with respect to your own unique LDAP configuration.
.PP
If unset, \fBmongod\f1\f1 cannot authorize users using LDAP.
.PP
This setting can be configured on a running \fBmongod\f1\f1 using the
\fBsetParameter\f1\f1 database command.
.PP
An explanation of RFC4515 (https://tools.ietf.org/search/rfc4515),
RFC4516 (https://tools.ietf.org/html/rfc4516) or LDAP queries is out
of scope for the MongoDB Documentation. Please review the RFC directly or
use your preferred LDAP resource.
.RE
.SS STORAGE OPTIONS
.PP
\fBmongod \-\-storageEngine\f1
.RS
.PP
\fIDefault\f1: \fBwiredTiger\f1
.PP
Starting in version 4.2, MongoDB removes the deprecated MMAPv1 storage
engine.
.PP
Specifies the storage engine for the \fBmongod\f1\f1 database. Available
values include:
.RS
.IP \(bu 2
.RS
.IP \(bu 4
Value
.IP \(bu 4
Description
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fBwiredTiger\f1
.IP \(bu 4
To specify the \fBWiredTiger Storage Engine\f1\&.
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fBinMemory\f1
.IP \(bu 4
To specify the \fBIn\-Memory Storage Engine\f1\&.
.IP
\fIAvailable in MongoDB Enterprise only.\f1
.RE
.RE
.PP
If you attempt to start a \fBmongod\f1\f1 with a
\fB\-\-dbpath\f1\f1 that contains data files produced by a
storage engine other than the one specified by \fB\-\-storageEngine\f1\f1, \fBmongod\f1\f1
will refuse to start.
.RE
.PP
\fBmongod \-\-dbpath\f1
.RS
.PP
\fIDefault\f1: \fB/data/db\f1 on Linux and macOS, \fB\data\db\f1 on Windows
.PP
The directory where the \fBmongod\f1\f1 instance stores its data.
.PP
If using the default
\fBconfiguration file\f1
included with a package manager installation of MongoDB, the
corresponding \fBstorage.dbPath\f1\f1 setting uses a different
default.
.PP
The files in \fB\-\-dbpath\f1\f1 must correspond to the storage engine
specified in \fB\-\-storageEngine\f1\f1\&. If the data files do not
correspond to \fB\-\-storageEngine\f1\f1, \fBmongod\f1\f1 will refuse to
start.
.RE
.PP
\fBmongod \-\-directoryperdb\f1
.RS
.PP
Uses a separate directory to store data for each database. The
directories are under the \fB\-\-dbpath\f1\f1 directory, and each subdirectory
name corresponds to the database name.
.PP
Not available for \fBmongod\f1\f1 instances that use the
\fBin\-memory storage engine\f1\&.
.PP
Starting in MongoDB 5.0, dropping the final collection in a database
(or dropping the database itself) when \fB\-\-directoryperdb\f1\f1 is
enabled deletes the newly empty subdirectory for that database.
.PP
To change the \fB\-\-directoryperdb\f1\f1 option for existing
deployments:
.RS
.IP \(bu 2
For standalone instances:
.RS
.IP \(bu 4
Use \fBmongodump\f1\f1 on the existing
\fBmongod\f1\f1 instance to generate a backup.
.IP \(bu 4
Stop the \fBmongod\f1\f1 instance.
.IP \(bu 4
Add the \fB\-\-directoryperdb\f1\f1 value \fBand\f1
configure a new data directory
.IP \(bu 4
Restart the \fBmongod\f1\f1 instance.
.IP \(bu 4
Use \fBmongorestore\f1\f1 to populate the new data
directory.
.RE
.IP \(bu 2
For replica sets:
.RS
.IP \(bu 4
Stop a secondary member.
.IP \(bu 4
Add the \fB\-\-directoryperdb\f1\f1 value \fBand\f1
configure a new data directory to that secondary member.
.IP \(bu 4
Restart that secondary.
.IP \(bu 4
Use \fBinitial sync\f1 to populate
the new data directory.
.IP \(bu 4
Update remaining secondaries in the same fashion.
.IP \(bu 4
Step down the primary, and update the stepped\-down member in the
same fashion.
.RE
.RE
.RE
.PP
\fBmongod \-\-syncdelay\f1
.RS
.PP
\fIDefault\f1: 60
.PP
Controls how much time can pass before MongoDB flushes data to the data
files via an \fBfsync\f1 operation.
.PP
\fBDo not set this value on
production systems.\f1 In almost every situation, you should use the
default setting.
.PP
If you set \fB\-\-syncdelay\f1\f1 to \fB0\f1, MongoDB will not sync the
memory mapped files to disk.
.PP
The \fBmongod\f1\f1 process writes data very quickly to the journal and
lazily to the data files. \fB\-\-syncdelay\f1\f1 has no effect on the
\fBjournal\f1\f1 files or \fBjournaling\f1,
but if \fB\-\-syncdelay\f1\f1 is set to \fB0\f1 the journal will eventually consume
all available disk space. If you set \fB\-\-syncdelay\f1\f1 to \fB0\f1 for testing
purposes, you should also set \fB\-\-nojournal\f1\f1
to \fBtrue\f1\&.
.PP
Not available for \fBmongod\f1\f1 instances that use the
\fBin\-memory storage engine\f1\&.
.RE
.PP
\fBmongod \-\-upgrade\f1
.RS
.PP
Upgrades the on\-disk data format of the files specified by the
\fB\-\-dbpath\f1\f1 to the latest version, if needed.
.PP
This option only affects the operation of the \fBmongod\f1\f1 if the data
files are in an old format.
.PP
In most cases you should not set this value, so you can exercise the
most control over your upgrade process. See the MongoDB release notes
for more information about the upgrade process.
.RE
.PP
\fBmongod \-\-repair\f1
.RS
.PP
Runs a repair routine on all databases for a \fBmongod\f1\f1
instance.
.PP
Starting in MongoDB 5.0:
.RS
.IP \(bu 2
The repair operation validates the collections to find any
inconsistencies and fixes them if possible, which avoids
rebuilding the indexes.
.IP \(bu 2
If a collection\(aqs data file is salvaged or if the collection has
inconsistencies that the validate step is unable to fix, then all
indexes are rebuilt.
.RE
.PP
In MongoDB 4.4 and previous versions, the repair operation attempts
to:
.RS
.IP \(bu 2
Salvage corrupt data. The operation discards any corrupt
data that cannot be salvaged.
.IP \(bu 2
Rebuild indexes. The operation validates collections and rebuilds
all indexes for collections with inconsistencies between the
collection data and one or more indexes. The operation also
rebuilds indexes for all salvaged and modified collections.
(\fIChanged in version 4.4.\f1)
.RE
.PP
If you are running with \fBjournaling\f1 enabled, there is
almost never any need to run repair since the server can use the
journal files to restore the data files to a clean state automatically.
However, you may need to run repair in cases where you need to recover
from a disk\-level data corruption.
.RS
.IP \(bu 2
Only use \fBmongod \-\-repair\f1\f1 if you have no other options.
The operation removes and does not save any corrupt data during
the repair process.
.IP \(bu 2
Avoid running \fB\-\-repair\f1\f1 against
a replica set member:
.RS
.IP \(bu 4
To repair a \fBreplica set\f1 member, if you have an intact
copy of your data available (e.g. a recent backup or an intact
member of the \fBreplica set\f1), restore from that intact
copy instead(see \fBResync a Member of a Replica Set\f1).
.IP \(bu 4
If you do choose to run \fBmongod \-\-repair\f1\f1 against a
replica set member and the operation modifies the data or the
metadata, you must still perform a full resync in order for the
member to rejoin the replica set.
.RE
.IP \(bu 2
Before using \fB\-\-repair\f1\f1, make a backup
copy of the \fBdbpath\f1\f1 directory.
.IP \(bu 2
If repair fails to complete for any reason, you must restart the
instance using the \fB\-\-repair\f1\f1 option.
.RE
.RE
.PP
\fBmongod \-\-journal\f1
.RS
.PP
Enables the durability \fBjournal\f1 to ensure data files remain valid
and recoverable. This option applies only when you specify the
\fB\-\-dbpath\f1\f1 option. \fBmongod\f1\f1 enables journaling by default.
.PP
Not available for \fBmongod\f1\f1 instances that use the
\fBin\-memory storage engine\f1\&.
.PP
If any voting member of a replica set uses the \fBin\-memory
storage engine\f1, you must set
\fBwriteConcernMajorityJournalDefault\f1\f1 to \fBfalse\f1\&.
.PP
Starting in version 4.2 (and 4.0.13 and 3.6.14 ), if a replica set
member uses the \fBin\-memory storage engine\f1
(voting or non\-voting) but the replica set has
\fBwriteConcernMajorityJournalDefault\f1\f1 set to true, the
replica set member logs a startup warning.
.RE
.PP
\fBmongod \-\-nojournal\f1
.RS
.PP
Disables \fBjournaling\f1\&. \fBmongod\f1\f1
enables journaling by default.
.PP
Not available for \fBmongod\f1\f1 instances that use the
\fBin\-memory storage engine\f1\&.
.PP
Starting in MongoDB 4.0, you cannot specify \fB\-\-nojournal\f1\f1 option or \fBstorage.journal.enabled:
false\f1\f1 for replica set members that use the
WiredTiger storage engine.
.RE
.PP
\fBmongod \-\-journalCommitInterval\f1
.RS
.PP
\fIDefault\f1: 100
.PP
The maximum amount of time in milliseconds that
the \fBmongod\f1\f1 process allows between
journal operations. Values can range from 1 to 500 milliseconds. Lower
values increase the durability of the journal, at the expense of disk
performance.
.PP
On WiredTiger, the default journal commit interval is 100
milliseconds. Additionally, a write that includes or implies
\fBj:true\f1 will cause an immediate sync of the journal. For details
or additional conditions that affect the frequency of the sync, see
\fBJournaling Process\f1\&.
.PP
Not available for \fBmongod\f1\f1 instances that use the
\fBin\-memory storage engine\f1\&.
.PP
Known Issue in 4.2.0: The \fB\-\-journalCommitInterval\f1\f1 is missing in 4.2.0.
.RE
.SS WIREDTIGER OPTIONS
.PP
\fBmongod \-\-wiredTigerCacheSizeGB\f1
.RS
.PP
Defines the maximum size of the internal cache that WiredTiger will
use for all data. The memory consumed by an index build (see
\fBmaxIndexBuildMemoryUsageMegabytes\f1\f1) is separate from the
WiredTiger cache memory.
.PP
Values can range from \fB0.25\f1 GB to \fB10000\f1 GB.
.PP
Starting in MongoDB 3.4, the default WiredTiger internal cache size is
the larger of either:
.RS
.IP \(bu 2
50% of (RAM \- 1 GB), or
.IP \(bu 2
256 MB.
.RE
.PP
For example, on a system with a total of 4GB of RAM the WiredTiger
cache will use 1.5GB of RAM (\fB0.5 * (4 GB \- 1 GB) = 1.5 GB\f1).
Conversely, a system with a total of 1.25 GB of RAM will allocate 256
MB to the WiredTiger cache because that is more than half of the
total RAM minus one gigabyte (\fB0.5 * (1.25 GB \- 1 GB) = 128 MB < 256 MB\f1).
.PP
In some instances, such as when running in a container, the database
can have memory constraints that are lower than the total system
memory. In such instances, this memory limit, rather than the total
system memory, is used as the maximum RAM available.
.PP
To see the memory limit, see \fBhostInfo.system.memLimitMB\f1\f1\&.
.PP
Avoid increasing the WiredTiger internal cache size above its
default value.
.PP
With WiredTiger, MongoDB utilizes both the WiredTiger internal cache
and the filesystem cache.
.PP
Via the filesystem cache, MongoDB automatically uses all free memory
that is not used by the WiredTiger cache or by other processes.
.PP
The \fB\-\-wiredTigerCacheSizeGB\f1\f1 limits the size of the WiredTiger internal
cache. The operating system will use the available free memory
for filesystem cache, which allows the compressed MongoDB data
files to stay in memory. In addition, the operating system will
use any free RAM to buffer file system blocks and file system
cache.
.PP
To accommodate the additional consumers of RAM, you may have to
decrease WiredTiger internal cache size.
.PP
The default WiredTiger internal cache size value assumes that there is a
single \fBmongod\f1\f1 instance per machine. If a single machine
contains multiple MongoDB instances, then you should decrease the setting to
accommodate the other \fBmongod\f1\f1
instances.
.PP
If you run \fBmongod\f1\f1 in a container (e.g. \fBlxc\f1,
\fBcgroups\f1, Docker, etc.) that does \fInot\f1 have access to all of the
RAM available in a system, you must set \fB\-\-wiredTigerCacheSizeGB\f1\f1 to a value
less than the amount of RAM available in the container. The exact
amount depends on the other processes running in the container. See
\fBmemLimitMB\f1\f1\&.
.RE
.PP
\fBmongod \-\-wiredTigerMaxCacheOverflowFileSizeGB\f1
.RS
.PP
MongoDB deprecates the \fB\-\-wiredTigerMaxCacheOverflowFileSizeGB\f1
option. The option has no effect starting in MongoDB 4.4.
.PP
Specifies the maximum size (in GB) for the "lookaside (or cache
overflow) table" file WiredTigerLAS.wt for MongoDB
4.2.1\-4.2.x and 4.0.12\-4.0.x. The file no longer exists starting in
version 4.4.
.PP
The setting can accept the following values:
.RS
.IP \(bu 2
.RS
.IP \(bu 4
Value
.IP \(bu 4
Description
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fB0\f1
.IP \(bu 4
The default value. If set to \fB0\f1, the file size is
unbounded.
.RE
.IP \(bu 2
.RS
.IP \(bu 4
number >= 0.1
.IP \(bu 4
The maximum size (in GB). If the WiredTigerLAS.wt
file exceeds this size, \fBmongod\f1\f1 exits with a
fatal assertion. You can clear the WiredTigerLAS.wt
file and restart \fBmongod\f1\f1\&.
.RE
.RE
.PP
To change the maximum size during runtime, use the
\fBwiredTigerMaxCacheOverflowSizeGB\f1\f1 parameter.
.PP
\fIAvailable starting in MongoDB 4.2.1 (and 4.0.12)\f1
.RE
.PP
\fBmongod \-\-wiredTigerJournalCompressor\f1
.RS
.PP
\fIDefault\f1: snappy
.PP
Specifies the type of compression to use to compress WiredTiger
journal data.
.PP
Available compressors are:
.RS
.IP \(bu 2
\fBnone\f1
.IP \(bu 2
\fBsnappy\f1
.IP \(bu 2
\fBzlib\f1
.IP \(bu 2
\fBzstd\f1 (Available starting in MongoDB 4.2)
.RE
.RE
.PP
\fBmongod \-\-wiredTigerDirectoryForIndexes\f1
.RS
.PP
When you start \fBmongod\f1\f1 with \fB\-\-wiredTigerDirectoryForIndexes\f1\f1, \fBmongod\f1\f1 stores indexes and collections in separate
subdirectories under the data (i.e. \fB\-\-dbpath\f1\f1) directory.
Specifically, \fBmongod\f1\f1 stores the indexes in a subdirectory named
\fBindex\f1 and the collection data in a subdirectory named
\fBcollection\f1\&.
.PP
By using a symbolic link, you can specify a different location for
the indexes. Specifically, when \fBmongod\f1\f1 instance is \fBnot\f1
running, move the \fBindex\f1 subdirectory to the destination and
create a symbolic link named \fBindex\f1 under the data directory to
the new destination.
.RE
.PP
\fBmongod \-\-wiredTigerCollectionBlockCompressor\f1
.RS
.PP
\fIDefault\f1: snappy
.PP
Specifies the default compression for collection data. You can
override this on a per\-collection basis when creating collections.
.PP
Available compressors are:
.RS
.IP \(bu 2
\fBnone\f1
.IP \(bu 2
\fBsnappy\f1
.IP \(bu 2
\fBzlib\f1
.IP \(bu 2
\fBzstd\f1 (Available starting MongoDB 4.2)
.RE
.PP
\fB\-\-wiredTigerCollectionBlockCompressor\f1\f1 affects all collections created. If you change
the value of \fB\-\-wiredTigerCollectionBlockCompressor\f1\f1 on an existing MongoDB deployment, all new
collections will use the specified compressor. Existing collections
will continue to use the compressor specified when they were
created, or the default compressor at that time.
.RE
.PP
\fBmongod \-\-wiredTigerIndexPrefixCompression\f1
.RS
.PP
\fIDefault\f1: true
.PP
Enables or disables \fBprefix compression\f1 for index data.
.PP
Specify \fBtrue\f1 for \fB\-\-wiredTigerIndexPrefixCompression\f1\f1 to enable \fBprefix compression\f1 for
index data, or \fBfalse\f1 to disable prefix compression for index data.
.PP
The \fB\-\-wiredTigerIndexPrefixCompression\f1\f1 setting affects all indexes created. If you change
the value of \fB\-\-wiredTigerIndexPrefixCompression\f1\f1 on an existing MongoDB deployment, all new
indexes will use prefix compression. Existing indexes
are not affected.
.RE
.SS REPLICATION OPTIONS
.PP
\fBmongod \-\-replSet\f1
.RS
.PP
Configures replication. Specify a replica set name as an argument to
this set. All hosts in the replica set must have the same set name.
.PP
Starting in MongoDB 4.0,
.RS
.IP \(bu 2
For the WiredTiger storage engine, \fB\-\-replSet\f1\f1 cannot be used in
conjunction with \fB\-\-nojournal\f1\f1\&.
.RE
.PP
If your application connects to more than one replica set, each set must
have a distinct name. Some drivers group replica set connections by
replica set name.
.RE
.PP
\fBmongod \-\-oplogSize\f1
.RS
.PP
Specifies a maximum size in megabytes for the replication operation log
(i.e., the \fBoplog\f1).
.PP
Starting in MongoDB 4.0, the oplog can grow past its configured size
limit to avoid deleting the \fBmajority commit point\f1\f1\&.
.PP
By default, the \fBmongod\f1\f1 process creates an \fBoplog\f1 based on
the maximum amount of space available. For 64\-bit systems, the oplog
is typically 5% of available disk space.
.PP
Once the \fBmongod\f1\f1 has created the oplog for the first time,
changing the \fB\-\-oplogSize\f1\f1 option will not affect the size of
the oplog. To change the minimum oplog retention period after
starting the \fBmongod\f1\f1, use
\fBreplSetResizeOplog\f1\f1\&. \fBreplSetResizeOplog\f1\f1
enables you to resize the oplog dynamically without restarting the
\fBmongod\f1\f1 process. To persist the changes made using
\fBreplSetResizeOplog\f1\f1 through a restart, update the value
of \fB\-\-oplogSize\f1\f1\&.
.PP
See \fBOplog Size\f1 for more information.
.RE
.PP
\fBmongod \-\-oplogMinRetentionHours\f1
.RS
.PP
Specifies the minimum number of hours to preserve an oplog entry,
where the decimal values represent the fractions of an hour. For
example, a value of \fB1.5\f1 represents one hour and thirty
minutes.
.PP
The value must be greater than or equal to \fB0\f1\&. A value of \fB0\f1
indicates that the \fBmongod\f1\f1 should truncate the oplog
starting with the oldest entries to maintain the configured
maximum oplog size.
.PP
Defaults to \fB0\f1\&.
.PP
A \fBmongod\f1\f1 started with \fB\-\-oplogMinRetentionHours\f1
only removes an oplog entry \fIif\f1:
.RS
.IP \(bu 2
The oplog has reached the maximum configured oplog size \fIand\f1
.IP \(bu 2
The oplog entry is older than the configured number of hours based
on the host system clock.
.RE
.PP
The \fBmongod\f1\f1 has the following behavior when configured
with a minimum oplog retention period:
.RS
.IP \(bu 2
The oplog can grow without constraint so as to retain oplog entries
for the configured number of hours. This may result in reduction or
exhaustion of system disk space due to a combination of high write
volume and large retention period.
.IP \(bu 2
If the oplog grows beyond its maximum size, the
\fBmongod\f1\f1 may continue to hold that disk space even if
the oplog returns to its maximum size \fIor\f1 is configured for a
smaller maximum size. See \fBReducing Oplog Size Does Not Immediately Return Disk Space\f1\&.
.IP \(bu 2
The \fBmongod\f1\f1 compares the system wall clock to an
oplog entries creation wall clock time when enforcing oplog entry
retention. Clock drift between cluster components may result in
unexpected oplog retention behavior. See
\fBClock Synchronization\f1 for more information on
clock synchronization across cluster members.
.RE
.PP
To change the minimum oplog retention period after starting the
\fBmongod\f1\f1, use \fBreplSetResizeOplog\f1\f1\&.
\fBreplSetResizeOplog\f1\f1 enables you to resize the oplog
dynamically without restarting the \fBmongod\f1\f1 process. To
persist the changes made using \fBreplSetResizeOplog\f1\f1
through a restart, update the value of
\fB\-\-oplogMinRetentionHours\f1\f1\&.
.RE
.PP
\fBmongod \-\-enableMajorityReadConcern\f1
.RS
.PP
\fIDefault\f1: true
.PP
Configures support for \fB"majority"\f1\f1 read concern.
.PP
Starting in MongoDB 5.0,
\fB\-\-enableMajorityReadConcern\f1\f1 cannot be changed
and is always set to \fBtrue\f1\&. In earlier versions of MongoDB,
\fB\-\-enableMajorityReadConcern\f1\f1 was configurable.
.PP
If you are using a three\-member primary\-secondary\-arbiter (PSA)
architecture, consider the following:
.RS
.IP \(bu 2
The write concern \fB"majority"\f1\f1 can cause
performance issues if a secondary is unavailable or lagging. For
advice on how to mitigate these issues, see
\fBMitigate Performance Issues with PSA Replica Set\f1\&.
.IP \(bu 2
If you are using a global default \fB"majority"\f1\f1
and the write concern is less than the size of the majority,
your queries may return stale (not fully replicated) data.
.RE
.RE
.SS SHARDED CLUSTER OPTIONS
.PP
\fBmongod \-\-configsvr\f1
.RS
.PP
\fIRequired if starting a config server.\f1
.PP
Declares that this \fBmongod\f1\f1 instance serves as the \fBconfig
server\f1 of a sharded cluster. When
running with this option, clients (i.e. other cluster components)
cannot write data to any database other than \fBconfig\f1
and \fBadmin\f1\&. The default port for a \fBmongod\f1\f1 with this option is
\fB27019\f1 and the default \fB\-\-dbpath\f1\f1 directory is
\fB/data/configdb\f1, unless specified.
.PP
When starting a MongoDB server with \fB\-\-configsvr\f1, you must also
specify a \fB\-\-replSet\f1\f1\&.
.PP
The use of the deprecated mirrored \fBmongod\f1\f1 instances as
config servers (SCCC) is no longer supported.
.PP
The replica set config servers (CSRS) must run the
\fBWiredTiger storage engine\f1\&.
.PP
The \fB\-\-configsvr\f1\f1 option creates a local \fBoplog\f1\&.
.PP
Do not use the \fB\-\-configsvr\f1\f1 option with \fB\-\-shardsvr\f1\f1\&. Config
servers cannot be a shard server.
.PP
Do not use the \fB\-\-configsvr\f1\f1 with the
\fBskipShardingConfigurationChecks\f1\f1 parameter. That is, if
you are temporarily starting the \fBmongod\f1\f1 as a
standalone for maintenance operations, include the parameter
\fBskipShardingConfigurationChecks\f1\f1 and exclude \fB\-\-configsvr\f1\f1\&.
Once maintenance has completed, remove the
\fBskipShardingConfigurationChecks\f1\f1 parameter and restart
with \fB\-\-configsvr\f1\f1\&.
.RE
.PP
\fBmongod \-\-configsvrMode\f1
.RS
.PP
\fBAvailable in MongoDB 3.2 version only\f1
.PP
If set to \fBsccc\f1, indicates that the config servers are deployed
as three mirrored \fBmongod\f1\f1 instances, even if one or more
config servers is also a member of a replica set. \fBconfigsvrMode\f1
only accepts the value \fBsccc\f1\&.
.PP
If unset, config servers running as replica sets expect to use the
"config server replica set" protocol for writing to config servers,
rather than the "mirrored mongod" write protocol.
.RE
.PP
\fBmongod \-\-shardsvr\f1
.RS
.PP
\fIRequired if starting a shard server.\f1
.PP
Configures this \fBmongod\f1\f1 instance as a shard in a
sharded cluster. The default port for these instances is
\fB27018\f1\&.
.PP
When starting a MongoDB server with \fB\-\-shardsvr\f1, you must also
specify a \fB\-\-replSet\f1\f1\&.
.PP
Do not use the \fB\-\-shardsvr\f1\f1 with the
\fBskipShardingConfigurationChecks\f1\f1 parameter. That is, if
you are temporarily starting the \fBmongod\f1\f1 as a
standalone for maintenance operations, include the parameter
\fBskipShardingConfigurationChecks\f1\f1 and exclude \fB\-\-shardsvr\f1\f1\&.
Once maintenance has completed, remove the
\fBskipShardingConfigurationChecks\f1\f1 parameter and restart
with \fB\-\-shardsvr\f1\f1\&.
.RE
.PP
\fBmongod \-\-moveParanoia\f1
.RS
.PP
If specified, during chunk migration, a shard saves,
to the \fBmoveChunk\f1 directory of the \fB\-\-dbpath\f1, all documents
migrated from that shard.
.PP
MongoDB does not automatically delete the data saved in the
\fBmoveChunk\f1 directory.
.RE
.PP
\fBmongod \-\-noMoveParanoia\f1
.RS
.PP
Starting in 3.2, MongoDB uses \fB\-\-noMoveParanoia\f1 as the default.
.PP
During chunk migration, a shard does not save documents migrated from
the shard.
.RE
.SS TLS OPTIONS
.PP
\fBConfigure mongod\f1 and mongos\f1 for TLS/SSL\f1 for full
documentation of MongoDB\(aqs support.
.PP
\fBmongod \-\-tlsMode\f1
.RS
.PP
Enables TLS used for all network connections. The
argument to the \fB\-\-tlsMode\f1\f1 option can be one of the following:
.RS
.IP \(bu 2
.RS
.IP \(bu 4
Value
.IP \(bu 4
Description
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fBdisabled\f1
.IP \(bu 4
The server does not use TLS.
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fBallowTLS\f1
.IP \(bu 4
Connections between servers do not use TLS. For incoming
connections, the server accepts both TLS and non\-TLS.
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fBpreferTLS\f1
.IP \(bu 4
Connections between servers use TLS. For incoming
connections, the server accepts both TLS and non\-TLS.
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fBrequireTLS\f1
.IP \(bu 4
The server uses and accepts only TLS encrypted connections.
.RE
.RE
.PP
If \fB\-\-tlsCAFile\f1 or \fBtls.CAFile\f1 is not
specified and you are not using x.509 authentication, the
system\-wide CA certificate store will be used when connecting to an
TLS\-enabled server.
.PP
If using x.509 authentication, \fB\-\-tlsCAFile\f1 or \fBtls.CAFile\f1
must be specified unless using \fB\-\-tlsCertificateSelector\f1\f1\&.
.PP
For more information about TLS and MongoDB, see
\fBConfigure mongod\f1 and mongos\f1 for TLS/SSL\f1 and
\fBTLS/SSL Configuration for Clients\f1 .
.RE
.PP
\fBmongod \-\-tlsCertificateKeyFile\f1
.RS
.PP
Specifies the \&.pem file that contains both the TLS
certificate and key.
.PP
Starting with MongoDB 4.0 on macOS or Windows, you can use the
\fB\-\-tlsCertificateSelector\f1\f1 option to specify a
certificate from the operating system\(aqs secure certificate store
instead of a PEM key file. \fB\-\-tlsCertificateKeyFile\f1\f1 and
\fB\-\-tlsCertificateSelector\f1\f1 options are mutually exclusive.
You can only specify one.
.RS
.IP \(bu 2
On Linux/BSD, you must specify \fB\-\-tlsCertificateKeyFile\f1\f1
when TLS/SSL is enabled.
.IP \(bu 2
On Windows or macOS, you must specify either
\fB\-\-tlsCertificateKeyFile\f1\f1 or
\fB\-\-tlsCertificateSelector\f1\f1 when TLS/SSL is enabled.
.IP
For Windows \fBonly\f1, MongoDB 4.0 and later do not support
encrypted PEM files. The \fBmongod\f1\f1 fails to start if
it encounters an encrypted PEM file. To securely store and
access a certificate for use with TLS on Windows,
use \fB\-\-tlsCertificateSelector\f1\f1\&.
.RE
.PP
For more information about TLS and MongoDB, see
\fBConfigure mongod\f1 and mongos\f1 for TLS/SSL\f1 and
\fBTLS/SSL Configuration for Clients\f1 .
.RE
.PP
\fBmongod \-\-tlsCertificateKeyFilePassword\f1
.RS
.PP
Specifies the password to de\-crypt the certificate\-key file (i.e.
\fB\-\-tlsCertificateKeyFile\f1\f1). Use the
\fB\-\-tlsCertificateKeyFilePassword\f1\f1 option only if the
certificate\-key file is encrypted. In all cases, the
\fBmongod\f1\f1 will redact the password from all logging and
reporting output.
.PP
Starting in MongoDB 4.0:
.RS
.IP \(bu 2
On Linux/BSD, if the private key in the PEM file is encrypted and
you do not specify the \fB\-\-tlsCertificateKeyFilePassword\f1\f1 option, MongoDB will prompt for a
passphrase. See \fBTLS/SSL Certificate Passphrase\f1\&.
.IP \(bu 2
On macOS, if the private key in the PEM file is
encrypted, you must explicitly specify the
\fB\-\-tlsCertificateKeyFilePassword\f1\f1 option. Alternatively,
you can use a certificate from the secure system store (see
\fB\-\-tlsCertificateSelector\f1\f1) instead of a PEM file or use an
unencrypted PEM file.
.IP \(bu 2
On Windows, MongoDB does not support encrypted certificates.
The \fBmongod\f1\f1 fails if it encounters an encrypted
PEM file. Use \fB\-\-tlsCertificateSelector\f1\f1 instead.
.RE
.PP
For more information about TLS and MongoDB, see
\fBConfigure mongod\f1 and mongos\f1 for TLS/SSL\f1 and
\fBTLS/SSL Configuration for Clients\f1 .
.RE
.PP
\fBmongod \-\-clusterAuthMode\f1
.RS
.PP
\fIDefault\f1: keyFile
.PP
The authentication mode used for cluster authentication. If you use
\fBinternal x.509 authentication\f1,
specify so here. This option can have one of the following values:
.RS
.IP \(bu 2
.RS
.IP \(bu 4
Value
.IP \(bu 4
Description
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fBkeyFile\f1
.IP \(bu 4
Use a keyfile for authentication.
Accept only keyfiles.
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fBsendKeyFile\f1
.IP \(bu 4
For rolling upgrade purposes. Send a keyfile for
authentication but can accept both keyfiles and x.509
certificates.
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fBsendX509\f1
.IP \(bu 4
For rolling upgrade purposes. Send the x.509 certificate for
authentication but can accept both keyfiles and x.509
certificates.
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fBx509\f1
.IP \(bu 4
Recommended. Send the x.509 certificate for authentication and
accept only x.509 certificates.
.RE
.RE
.PP
If \fB\-\-tlsCAFile\f1 or \fBtls.CAFile\f1 is not
specified and you are not using x.509 authentication, the
system\-wide CA certificate store will be used when connecting to an
TLS\-enabled server.
.PP
If using x.509 authentication, \fB\-\-tlsCAFile\f1 or \fBtls.CAFile\f1
must be specified unless using \fB\-\-tlsCertificateSelector\f1\f1\&.
.PP
For more information about TLS and MongoDB, see
\fBConfigure mongod\f1 and mongos\f1 for TLS/SSL\f1 and
\fBTLS/SSL Configuration for Clients\f1 .
.RE
.PP
\fBmongod \-\-tlsClusterFile\f1
.RS
.PP
Specifies the \&.pem file that contains the x.509
certificate\-key file for \fBmembership authentication\f1 for the cluster or replica set.
.PP
Starting with MongoDB 4.0 on macOS or Windows, you can use the
\fB\-\-tlsClusterCertificateSelector\f1\f1 option to specify a
certificate from the operating system\(aqs secure certificate store
instead of a PEM key file. \fB\-\-tlsClusterFile\f1\f1 and
\fB\-\-tlsClusterCertificateSelector\f1\f1 options are mutually
exclusive. You can only specify one.
.PP
If \fB\-\-tlsClusterFile\f1\f1 does not specify the \fB\&.pem\f1 file for
internal cluster authentication or the alternative
\fB\-\-tlsClusterCertificateSelector\f1\f1, the cluster uses the
\fB\&.pem\f1 file specified in the \fB\-\-tlsCertificateKeyFile\f1\f1
option or the certificate returned by the
\fB\-\-tlsCertificateSelector\f1\f1\&.
.PP
If using x.509 authentication, \fB\-\-tlsCAFile\f1 or \fBtls.CAFile\f1
must be specified unless using \fB\-\-tlsCertificateSelector\f1\f1\&.
.PP
\fBmongod\f1\f1 / \fBmongos\f1\f1 logs a warning on
connection if the presented x.509 certificate expires within \fB30\f1
days of the \fBmongod/mongos\f1 host system time. See
\fBx.509 Certificates Nearing Expiry Trigger Warnings\f1 for more
information.
.PP
For more information about TLS and MongoDB, see
\fBConfigure mongod\f1 and mongos\f1 for TLS/SSL\f1 and
\fBTLS/SSL Configuration for Clients\f1 .
.PP
For Windows \fBonly\f1, MongoDB 4.0 and later do not support
encrypted PEM files. The \fBmongod\f1\f1 fails to start if
it encounters an encrypted PEM file. To securely store and
access a certificate for use with membership authentication on
Windows, use \fB\-\-tlsClusterCertificateSelector\f1\f1\&.
.RE
.PP
\fBmongod \-\-tlsCertificateSelector\f1
.RS
.PP
Available on Windows and macOS as an alternative to
\fB\-\-tlsCertificateKeyFile\f1\f1\&. In version 4.0, see
\fB\-\-sslCertificateSelector\f1\f1\&.
.PP
Specifies a certificate property in order to select a matching
certificate from the operating system\(aqs certificate store to use for
TLS.
.PP
The \fB\-\-tlsCertificateKeyFile\f1\f1 and
\fB\-\-tlsCertificateSelector\f1\f1 options are mutually exclusive.
You can only specify one.
.PP
\fB\-\-tlsCertificateSelector\f1\f1 accepts an argument of the format
\fB<property>=<value>\f1 where the property can be one of the
following:
.RS
.IP \(bu 2
.RS
.IP \(bu 4
Property
.IP \(bu 4
Value type
.IP \(bu 4
Description
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fBsubject\f1
.IP \(bu 4
ASCII string
.IP \(bu 4
Subject name or common name on certificate
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fBthumbprint\f1
.IP \(bu 4
hex string
.IP \(bu 4
A sequence of bytes, expressed as hexadecimal, used to
identify a public key by its SHA\-1 digest.
.IP
The \fBthumbprint\f1 is sometimes referred to as a
\fBfingerprint\f1\&.
.RE
.RE
.PP
When using the system SSL certificate store, OCSP (Online
Certificate Status Protocol) is used to validate the revocation
status of certificates.
.PP
The \fBmongod\f1\f1 searches the operating system\(aqs secure
certificate store for the CA certificates required to validate the
full certificate chain of the specified TLS certificate.
Specifically, the secure certificate store must contain the root CA
and any intermediate CA certificates required to build the full
certificate chain to the TLS certificate. Do \fBnot\f1 use
\fB\-\-tlsCAFile\f1\f1 or \fB\-\-tlsClusterCAFile\f1\f1 to specify the
root and intermediate CA certificate
.PP
For example, if the TLS/SSL certificate was signed with a single root
CA certificate, the secure certificate store must contain that root
CA certificate. If the TLS/SSL certificate was signed with an
intermediate CA certificate, the secure certificate store must
contain the intermedia CA certificate \fIand\f1 the root CA certificate.
.PP
You cannot use the \fBrotateCertificates\f1\f1 command or the
\fBdb.rotateCertificates()\f1\f1 shell method when using
\fBnet.tls.certificateSelector\f1\f1 or
\fB\-\-tlsCertificateSelector\f1\f1
set to \fBthumbprint\f1
.RE
.PP
\fBmongod \-\-tlsClusterCertificateSelector\f1
.RS
.PP
Available on Windows and macOS as an alternative to
\fB\-\-tlsClusterFile\f1\f1\&.
.PP
Specifies a certificate property in order to select a matching
certificate from the operating system\(aqs certificate store to use
for \fBinternal x.509 membership authentication\f1\&.
.PP
\fB\-\-tlsClusterFile\f1\f1 and
\fB\-\-tlsClusterCertificateSelector\f1\f1 options are mutually
exclusive. You can only specify one.
.PP
\fB\-\-tlsClusterCertificateSelector\f1\f1 accepts an argument of the
format \fB<property>=<value>\f1 where the property can be one of the
following:
.RS
.IP \(bu 2
.RS
.IP \(bu 4
Property
.IP \(bu 4
Value type
.IP \(bu 4
Description
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fBsubject\f1
.IP \(bu 4
ASCII string
.IP \(bu 4
Subject name or common name on certificate
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fBthumbprint\f1
.IP \(bu 4
hex string
.IP \(bu 4
A sequence of bytes, expressed as hexadecimal, used to
identify a public key by its SHA\-1 digest.
.IP
The \fBthumbprint\f1 is sometimes referred to as a
\fBfingerprint\f1\&.
.RE
.RE
.PP
The \fBmongod\f1\f1 searches the operating system\(aqs secure
certificate store for the CA certificates required to validate the
full certificate chain of the specified cluster certificate.
Specifically, the secure certificate store must contain the root CA
and any intermediate CA certificates required to build the full
certificate chain to the cluster certificate. Do \fBnot\f1 use
\fB\-\-tlsCAFile\f1\f1 or \fB\-\-tlsClusterCAFile\f1\f1 to specify the
root and intermediate CA certificate.
.PP
For example, if the cluster certificate was signed with a single root
CA certificate, the secure certificate store must contain that root
CA certificate. If the cluster certificate was signed with an
intermediate CA certificate, the secure certificate store must
contain the intermedia CA certificate \fIand\f1 the root CA certificate.
.PP
\fBmongod\f1\f1 / \fBmongos\f1\f1 logs a warning on
connection if the presented x.509 certificate expires within \fB30\f1
days of the \fBmongod/mongos\f1 host system time. See
\fBx.509 Certificates Nearing Expiry Trigger Warnings\f1 for more
information.
.RE
.PP
\fBmongod \-\-tlsClusterPassword\f1
.RS
.PP
Specifies the password to de\-crypt the x.509 certificate\-key file
specified with \fB\-\-tlsClusterFile\f1\f1\&. Use the
\fB\-\-tlsClusterPassword\f1\f1 option only if the certificate\-key
file is encrypted. In all cases, the \fBmongod\f1\f1 will redact
the password from all logging and reporting output.
.PP
Starting in MongoDB 4.0:
.RS
.IP \(bu 2
On Linux/BSD, if the private key in the x.509 file is encrypted and
you do not specify the \fB\-\-tlsClusterPassword\f1\f1 option,
MongoDB will prompt for a passphrase. See
\fBTLS/SSL Certificate Passphrase\f1\&.
.IP \(bu 2
On macOS, if the private key in the x.509 file is
encrypted, you must explicitly specify the
\fB\-\-tlsClusterPassword\f1\f1 option. Alternatively, you can
either use a certificate from the secure system store (see
\fB\-\-tlsClusterCertificateSelector\f1\f1) instead of a cluster PEM
file or use an unencrypted PEM file.
.IP \(bu 2
On Windows, MongoDB does not support encrypted certificates.
The \fBmongod\f1\f1 fails if it encounters an encrypted
PEM file. Use \fB\-\-tlsClusterCertificateSelector\f1\f1 instead.
.RE
.PP
For more information about TLS and MongoDB, see
\fBConfigure mongod\f1 and mongos\f1 for TLS/SSL\f1 and
\fBTLS/SSL Configuration for Clients\f1 .
.RE
.PP
\fBmongod \-\-tlsCAFile\f1
.RS
.PP
Specifies the \&.pem file that contains the root certificate
chain from the Certificate Authority. Specify the file name of the
\&.pem file using relative or absolute paths.
.PP
\fBWindows/macOS Only\f1
.RS
.PP
If using \fB\-\-tlsCertificateSelector\f1\f1 and/or
\fB\-\-tlsClusterCertificateSelector\f1\f1, do \fBnot\f1 use
\fB\-\-tlsCAFile\f1\f1 to specify the root and intermediate CA
certificates. Store all CA certificates required to validate the
full trust chain of the \fB\-\-tlsCertificateSelector\f1\f1 and/or
\fB\-\-tlsClusterCertificateSelector\f1\f1 certificates in the
secure certificate store.
.RE
.PP
For more information about TLS and MongoDB, see
\fBConfigure mongod\f1 and mongos\f1 for TLS/SSL\f1 and
\fBTLS/SSL Configuration for Clients\f1 .
.RE
.PP
\fBmongod \-\-tlsClusterCAFile\f1
.RS
.PP
Specifies the \&.pem file that contains the root certificate
chain from the Certificate Authority used to validate the certificate
presented by a client establishing a connection. Specify the file
name of the \&.pem file using relative or absolute paths.
\fB\-\-tlsClusterCAFile\f1\f1 requires that
\fB\-\-tlsCAFile\f1\f1 is set.
.PP
If \fB\-\-tlsClusterCAFile\f1\f1 does not specify the \&.pem
file for validating the certificate from a client establishing a
connection, the cluster uses the \&.pem file specified in the
\fB\-\-tlsCAFile\f1\f1 option.
.PP
\fB\-\-tlsClusterCAFile\f1\f1 lets you use separate Certificate
Authorities to verify the client to server and server to client
portions of the TLS handshake.
.PP
\fBWindows/macOS Only\f1
.RS
.PP
If using \fB\-\-tlsCertificateSelector\f1\f1 and/or
\fB\-\-tlsClusterCertificateSelector\f1\f1, do \fBnot\f1 use
\fB\-\-tlsClusterCAFile\f1\f1 to specify the root and
intermediate CA certificates. Store all CA certificates required to
validate the full trust chain of the
\fB\-\-tlsCertificateSelector\f1\f1 and/or
\fB\-\-tlsClusterCertificateSelector\f1\f1 certificates in the
secure certificate store.
.RE
.PP
For more information about TLS and MongoDB, see
\fBConfigure mongod\f1 and mongos\f1 for TLS/SSL\f1 and
\fBTLS/SSL Configuration for Clients\f1 .
.RE
.PP
\fBmongod \-\-tlsCRLFile\f1
.RS
.PP
For MongoDB 4.0 and earlier, see \fB\-\-sslCRLFile\f1\f1\&.
.PP
Specifies the \&.pem file that contains the Certificate Revocation
List. Specify the file name of the \&.pem file using relative or
absolute paths.
.RS
.IP \(bu 2
Starting in MongoDB 4.0, you cannot specify a CRL file on
macOS. Instead, you can use the system SSL certificate store,
which uses OCSP (Online Certificate Status Protocol) to
validate the revocation status of certificates. See
\fB\-\-sslCertificateSelector\f1\f1 in MongoDB 4.0 and
\fB\-\-tlsCertificateSelector\f1\f1 in MongoDB 4.2+ to use the
system SSL certificate store.
.IP \(bu 2
Starting in version 4.4, to check for certificate revocation,
MongoDB \fBenables\f1\f1 the use of OCSP
(Online Certificate Status Protocol) by default as an
alternative to specifying a CRL file or using the system SSL
certificate store.
.RE
.PP
For more information about TLS and MongoDB, see
\fBConfigure mongod\f1 and mongos\f1 for TLS/SSL\f1 and
\fBTLS/SSL Configuration for Clients\f1 .
.RE
.PP
\fBmongod \-\-tlsAllowInvalidCertificates\f1
.RS
.PP
Bypasses the validation checks for TLS certificates on other
servers in the cluster and allows the use of invalid certificates to
connect.
.PP
If you specify
\fB\-\-tlsAllowInvalidCertificates\f1 or \fBtls.allowInvalidCertificates:
true\f1 when using x.509 authentication, an invalid certificate is
only sufficient to establish a TLS connection but is
\fIinsufficient\f1 for authentication.
.PP
When using
the \fB\-\-tlsAllowInvalidCertificates\f1\f1 setting, MongoDB
logs a warning regarding the use of the invalid certificate.
.PP
For more information about TLS and MongoDB, see
\fBConfigure mongod\f1 and mongos\f1 for TLS/SSL\f1 and
\fBTLS/SSL Configuration for Clients\f1 .
.RE
.PP
\fBmongod \-\-tlsAllowInvalidHostnames\f1
.RS
.PP
Disables the validation of the hostnames in TLS certificates,
when connecting to other members of the replica set or sharded cluster
for inter\-process authentication. This allows \fBmongod\f1\f1 to connect
to other members if the hostnames in their certificates do not match
their configured hostname.
.PP
For more information about TLS and MongoDB, see
\fBConfigure mongod\f1 and mongos\f1 for TLS/SSL\f1 and
\fBTLS/SSL Configuration for Clients\f1 .
.RE
.PP
\fBmongod \-\-tlsAllowConnectionsWithoutCertificates\f1
.RS
.PP
For clients that do not present certificates, \fBmongod\f1\f1 bypasses
TLS/SSL certificate validation when establishing the connection.
.PP
For clients that present a certificate, however, \fBmongod\f1\f1 performs
certificate validation using the root certificate chain specified by
\fB\-\-tlsCAFile\f1 and reject clients with invalid certificates.
.PP
Use the \fB\-\-tlsAllowConnectionsWithoutCertificates\f1\f1 option if you have a mixed deployment that includes
clients that do not or cannot present certificates to the \fBmongod\f1\f1\&.
.PP
For more information about TLS and MongoDB, see
\fBConfigure mongod\f1 and mongos\f1 for TLS/SSL\f1 and
\fBTLS/SSL Configuration for Clients\f1 .
.RE
.PP
\fBmongod \-\-tlsDisabledProtocols\f1
.RS
.PP
Prevents a MongoDB server running with TLS from accepting
incoming connections that use a specific protocol or protocols. To
specify multiple protocols, use a comma separated list of protocols.
.PP
\fB\-\-tlsDisabledProtocols\f1\f1 recognizes the following protocols: \fBTLS1_0\f1, \fBTLS1_1\f1,
\fBTLS1_2\f1, and \fBTLS1_3\f1\&.
.RS
.IP \(bu 2
On macOS, you cannot disable \fBTLS1_1\f1 and leave both \fBTLS1_0\f1 and
\fBTLS1_2\f1 enabled. You must disable at least one of the other
two, for example, \fBTLS1_0,TLS1_1\f1\&.
.IP \(bu 2
To list multiple protocols, specify as a comma separated list of
protocols. For example \fBTLS1_0,TLS1_1\f1\&.
.IP \(bu 2
Specifying an unrecognized protocol will prevent the server from
starting.
.IP \(bu 2
The specified disabled protocols overrides any default disabled
protocols.
.RE
.PP
Starting in version 4.0, MongoDB disables the use of TLS 1.0 if TLS
1.1+ is available on the system. To enable the disabled TLS 1.0,
specify \fBnone\f1 to \fB\-\-tlsDisabledProtocols\f1\f1\&. See \fBDisable TLS 1.0\f1\&.
.PP
Members of replica sets and sharded clusters must speak at least one
protocol in common.
.PP
\fBDisallow Protocols\f1
.RE
.PP
\fBmongod \-\-tlsFIPSMode\f1
.RS
.PP
Directs the \fBmongod\f1\f1 to use the FIPS mode of the  TLS
library. Your system must have a FIPS
compliant library to use the \fB\-\-tlsFIPSMode\f1\f1 option.
.PP
FIPS\-compatible TLS/SSL is
available only in MongoDB Enterprise (http://www.mongodb.com/products/mongodb\-enterprise\-advanced?tck=docs_server)\&. See
\fBConfigure MongoDB for FIPS\f1 for more information.
.RE
.SS SSL OPTIONS (DEPRECATED)
.PP
All SSL options are deprecated since 4.2. Use the \fBTLS counterparts\f1 instead, as they have identical functionality to the
SSL options.  The SSL protocol is deprecated and MongoDB supports TLS 1.0
and later.
.PP
\fBConfigure mongod\f1 and mongos\f1 for TLS/SSL\f1 for full
documentation of MongoDB\(aqs support.
.PP
\fBmongod \-\-sslOnNormalPorts\f1
.RS
.PP
Use \fB\-\-tlsMode requireTLS\f1\f1 instead.
.PP
Enables TLS/SSL for \fBmongod\f1\f1\&.
.PP
With \fB\-\-sslOnNormalPorts\f1\f1, a \fBmongod\f1\f1 requires TLS/SSL encryption for all
connections on the default MongoDB port, or the port specified by
\fB\-\-port\f1\f1\&. By default, \fB\-\-sslOnNormalPorts\f1\f1 is
disabled.
.PP
For more information about TLS/SSL and MongoDB, see
\fBConfigure mongod\f1 and mongos\f1 for TLS/SSL\f1 and
\fBTLS/SSL Configuration for Clients\f1 .
.RE
.PP
\fBmongod \-\-sslMode\f1
.RS
.PP
Use \fB\-\-tlsMode\f1\f1 instead.
.PP
Enables TLS/SSL or mixed TLS/SSL used for all network connections. The
argument to the \fB\-\-sslMode\f1\f1 option can be one of the following:
.RS
.IP \(bu 2
.RS
.IP \(bu 4
Value
.IP \(bu 4
Description
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fBdisabled\f1
.IP \(bu 4
The server does not use TLS/SSL.
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fBallowSSL\f1
.IP \(bu 4
Connections between servers do not use TLS/SSL. For incoming
connections, the server accepts both TLS/SSL and non\-TLS/non\-SSL.
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fBpreferSSL\f1
.IP \(bu 4
Connections between servers use TLS/SSL. For incoming
connections, the server accepts both TLS/SSL and non\-TLS/non\-SSL.
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fBrequireSSL\f1
.IP \(bu 4
The server uses and accepts only TLS/SSL encrypted connections.
.RE
.RE
.PP
Starting in version 3.4, if \fB\-\-tlsCAFile\f1/\fBnet.tls.CAFile\f1 (or
their aliases \fB\-\-sslCAFile\f1/\fBnet.ssl.CAFile\f1) is not specified
and you are not using x.509 authentication, the system\-wide CA
certificate store will be used when connecting to an TLS/SSL\-enabled
server.
.PP
To use x.509 authentication, \fB\-\-tlsCAFile\f1 or \fBnet.tls.CAFile\f1
must be specified unless you are using \fB\-\-tlsCertificateSelector\f1
or \fB\-\-net.tls.certificateSelector\f1\&.
.PP
For more information about TLS/SSL and MongoDB, see
\fBConfigure mongod\f1 and mongos\f1 for TLS/SSL\f1 and
\fBTLS/SSL Configuration for Clients\f1 .
.RE
.PP
\fBmongod \-\-sslPEMKeyFile\f1
.RS
.PP
Use \fB\-\-tlsCertificateKeyFile\f1\f1 instead.
.PP
Specifies the \&.pem file that contains both the TLS/SSL
certificate and key.
.PP
Starting with MongoDB 4.0 on macOS or Windows, you can use the
\fB\-\-sslCertificateSelector\f1\f1 option to specify a
certificate from the operating system\(aqs secure certificate store
instead of a PEM key file. \fB\-\-sslPEMKeyFile\f1\f1 and
\fB\-\-sslCertificateSelector\f1\f1 options are mutually exclusive.
You can only specify one.
.RS
.IP \(bu 2
On Linux/BSD, you must specify \fB\-\-sslPEMKeyFile\f1\f1 when
TLS/SSL is enabled.
.IP \(bu 2
On Windows or macOS, you must specify either
\fB\-\-sslPEMKeyFile\f1\f1 or \fB\-\-sslCertificateSelector\f1\f1
when TLS/SSL is enabled.
.IP
For Windows \fBonly\f1, MongoDB 4.0 and later do not support
encrypted PEM files. The \fBmongod\f1\f1 fails to start if
it encounters an encrypted PEM file. To securely store and
access a certificate for use with TLS/SSL on Windows,
use \fB\-\-sslCertificateSelector\f1\f1\&.
.RE
.PP
For more information about TLS/SSL and MongoDB, see
\fBConfigure mongod\f1 and mongos\f1 for TLS/SSL\f1 and
\fBTLS/SSL Configuration for Clients\f1 .
.RE
.PP
\fBmongod \-\-sslPEMKeyPassword\f1
.RS
.PP
Use \fB\-\-tlsCertificateKeyFilePassword\f1\f1 instead.
.PP
Specifies the password to de\-crypt the certificate\-key file (i.e.
\fB\-\-sslPEMKeyFile\f1\f1). Use the \fB\-\-sslPEMKeyPassword\f1\f1 option only if the
certificate\-key file is encrypted. In all cases, the \fBmongod\f1\f1 will
redact the password from all logging and reporting output.
.PP
Starting in MongoDB 4.0:
.RS
.IP \(bu 2
On Linux/BSD, if the private key in the PEM file is encrypted and
you do not specify the \fB\-\-sslPEMKeyPassword\f1\f1 option, MongoDB will prompt for a
passphrase. See \fBTLS/SSL Certificate Passphrase\f1\&.
.IP \(bu 2
On macOS, if the private key in the PEM file is
encrypted, you must explicitly specify the
\fB\-\-sslPEMKeyPassword\f1\f1 option. Alternatively, you can use a
certificate from the secure system store (see
\fB\-\-sslCertificateSelector\f1\f1) instead of a PEM key file or
use an unencrypted PEM file.
.IP \(bu 2
On Windows, MongoDB does not support encrypted certificates.
The \fBmongod\f1\f1 fails if it encounters an encrypted
PEM file. Use \fB\-\-sslCertificateSelector\f1\f1 instead.
.RE
.PP
For more information about TLS/SSL and MongoDB, see
\fBConfigure mongod\f1 and mongos\f1 for TLS/SSL\f1 and
\fBTLS/SSL Configuration for Clients\f1 .
.RE
.PP
\fBmongod \-\-sslClusterFile\f1
.RS
.PP
Use \fB\-\-tlsClusterFile\f1\f1 instead.
.PP
Specifies the \&.pem file that contains the x.509
certificate\-key file for \fBmembership authentication\f1 for the cluster or replica set.
.PP
Starting with MongoDB 4.0 on macOS or Windows, you can use the
\fB\-\-sslClusterCertificateSelector\f1\f1 option to specify a
certificate from the operating system\(aqs secure certificate store
instead of a PEM key file. \fB\-\-sslClusterFile\f1\f1 and
\fB\-\-sslClusterCertificateSelector\f1\f1 options are mutually
exclusive. You can only specify one.
.PP
If \fB\-\-sslClusterFile\f1\f1 does not specify the \fB\&.pem\f1 file for
internal cluster authentication or the alternative
\fB\-\-sslClusterCertificateSelector\f1\f1, the cluster uses the
\fB\&.pem\f1 file specified in the \fB\-\-sslPEMKeyFile\f1\f1 option or
the certificate returned by the \fB\-\-sslCertificateSelector\f1\f1\&.
.PP
To use x.509 authentication, \fB\-\-tlsCAFile\f1 or \fBnet.tls.CAFile\f1
must be specified unless you are using \fB\-\-tlsCertificateSelector\f1
or \fB\-\-net.tls.certificateSelector\f1\&.
.PP
For more information about TLS/SSL and MongoDB, see
\fBConfigure mongod\f1 and mongos\f1 for TLS/SSL\f1 and
\fBTLS/SSL Configuration for Clients\f1 .
.PP
For Windows \fBonly\f1, MongoDB 4.0 and later do not support
encrypted PEM files. The \fBmongod\f1\f1 fails to start if
it encounters an encrypted PEM file. To securely store and
access a certificate for use with membership authentication on
Windows, use \fB\-\-sslClusterCertificateSelector\f1\f1\&.
.RE
.PP
\fBmongod \-\-sslCertificateSelector\f1
.RS
.PP
Use \fB\-\-tlsCertificateSelector\f1\f1 instead.
.PP
Available on Windows and macOS as an alternative to
\fB\-\-tlsCertificateKeyFile\f1\f1\&.
.PP
Specifies a certificate property to select a matching certificate
from the operating system\(aqs secure certificate store to use for
TLS/SSL.
.PP
\fB\-\-sslPEMKeyFile\f1\f1 and \fB\-\-sslCertificateSelector\f1\f1
options are mutually exclusive. You can only specify one.
.PP
\fB\-\-sslCertificateSelector\f1\f1 accepts an argument of the format
\fB<property>=<value>\f1 where the property can be one of the
following:
.RS
.IP \(bu 2
.RS
.IP \(bu 4
Property
.IP \(bu 4
Value type
.IP \(bu 4
Description
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fBsubject\f1
.IP \(bu 4
ASCII string
.IP \(bu 4
Subject name or common name on certificate
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fBthumbprint\f1
.IP \(bu 4
hex string
.IP \(bu 4
A sequence of bytes, expressed as hexadecimal, used to
identify a public key by its SHA\-1 digest.
.IP
The \fBthumbprint\f1 is sometimes referred to as a
\fBfingerprint\f1\&.
.RE
.RE
.PP
When using the system SSL certificate store, OCSP (Online
Certificate Status Protocol) is used to validate the revocation
status of certificates.
.PP
The \fBmongod\f1\f1 searches the operating system\(aqs secure
certificate store for the CA certificates required to validate the
full certificate chain of the specified TLS/SSL certificate.
Specifically, the secure certificate store must contain the root CA
and any intermediate CA certificates required to build the full
certificate chain to the TLS/SSL certificate. Do \fBnot\f1 use
\fB\-\-sslCAFile\f1\f1 or \fB\-\-sslClusterCAFile\f1\f1 to specify the
root and intermediate CA certificate
.PP
For example, if the TLS/SSL certificate was signed with a single root
CA certificate, the secure certificate store must contain that root
CA certificate. If the TLS/SSL certificate was signed with an
intermediate CA certificate, the secure certificate store must
contain the intermedia CA certificate \fIand\f1 the root CA certificate.
.RE
.PP
\fBmongod \-\-sslClusterCertificateSelector\f1
.RS
.PP
Use \fB\-\-tlsClusterCertificateSelector\f1\f1 instead.
.PP
Available on Windows and macOS as an alternative to
\fB\-\-sslClusterFile\f1\f1\&.
.PP
Specifies a certificate property to select a matching certificate
from the operating system\(aqs secure certificate store to use for
\fBinternal x.509 membership authentication\f1\&.
.PP
\fB\-\-sslClusterFile\f1\f1 and
\fB\-\-sslClusterCertificateSelector\f1\f1 options are mutually
exclusive. You can only specify one.
.PP
\fB\-\-sslClusterCertificateSelector\f1\f1 accepts an argument of the
format \fB<property>=<value>\f1 where the property can be one of the
following:
.RS
.IP \(bu 2
.RS
.IP \(bu 4
Property
.IP \(bu 4
Value type
.IP \(bu 4
Description
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fBsubject\f1
.IP \(bu 4
ASCII string
.IP \(bu 4
Subject name or common name on certificate
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fBthumbprint\f1
.IP \(bu 4
hex string
.IP \(bu 4
A sequence of bytes, expressed as hexadecimal, used to
identify a public key by its SHA\-1 digest.
.IP
The \fBthumbprint\f1 is sometimes referred to as a
\fBfingerprint\f1\&.
.RE
.RE
.PP
The \fBmongod\f1\f1 searches the operating system\(aqs secure
certificate store for the CA certificates required to validate the
full certificate chain of the specified cluster certificate.
Specifically, the secure certificate store must contain the root CA
and any intermediate CA certificates required to build the full
certificate chain to the cluster certificate. Do \fBnot\f1 use
\fB\-\-sslCAFile\f1\f1 or \fB\-\-sslClusterCAFile\f1\f1 to specify the
root and intermediate CA certificate.
.PP
For example, if the cluster certificate was signed with a single root
CA certificate, the secure certificate store must contain that root
CA certificate. If the cluster certificate was signed with an
intermediate CA certificate, the secure certificate store must
contain the intermedia CA certificate \fIand\f1 the root CA certificate.
.RE
.PP
\fBmongod \-\-sslClusterPassword\f1
.RS
.PP
Use \fB\-\-tlsClusterPassword\f1\f1 instead.
.PP
Specifies the password to de\-crypt the x.509 certificate\-key file
specified with \fB\-\-sslClusterFile\f1\&. Use the \fB\-\-sslClusterPassword\f1\f1 option only
if the certificate\-key file is encrypted. In all cases, the \fBmongod\f1\f1
will redact the password from all logging and reporting output.
.PP
Starting in MongoDB 4.0:
.RS
.IP \(bu 2
On Linux/BSD, if the private key in the x.509 file is encrypted and
you do not specify the \fB\-\-sslClusterPassword\f1\f1 option, MongoDB will prompt for a
passphrase. See \fBTLS/SSL Certificate Passphrase\f1\&.
.IP \(bu 2
On macOS, if the private key in the x.509 file is encrypted, you
must explicitly specify the \fB\-\-sslClusterPassword\f1\f1 option.
Alternatively, you can either use a certificate from the secure
system store (see \fB\-\-sslClusterCertificateSelector\f1\f1)
instead of a cluster PEM file or use an unencrypted PEM file.
.IP \(bu 2
On Windows, MongoDB does not support encrypted certificates.
The \fBmongod\f1\f1 fails if it encounters an encrypted
PEM file. Use \fB\-\-sslClusterCertificateSelector\f1\f1 instead.
.RE
.PP
For more information about TLS/SSL and MongoDB, see
\fBConfigure mongod\f1 and mongos\f1 for TLS/SSL\f1 and
\fBTLS/SSL Configuration for Clients\f1 .
.RE
.PP
\fBmongod \-\-sslCAFile\f1
.RS
.PP
Use \fB\-\-tlsCAFile\f1\f1 instead.
.PP
Specifies the \&.pem file that contains the root certificate
chain from the Certificate Authority. Specify the file name of the
\&.pem file using relative or absolute paths.
.PP
\fBWindows/macOS Only\f1
.RS
.PP
If using \fB\-\-sslCertificateSelector\f1\f1 and/or
\fB\-\-sslClusterCertificateSelector\f1\f1, do \fBnot\f1 use
\fB\-\-sslCAFile\f1\f1 to specify the root and intermediate CA
certificates. Store all CA certificates required to validate the
full trust chain of the \fB\-\-sslCertificateSelector\f1\f1 and/or
\fB\-\-sslClusterCertificateSelector\f1\f1 certificates in the
secure certificate store.
.RE
.PP
For more information about TLS/SSL and MongoDB, see
\fBConfigure mongod\f1 and mongos\f1 for TLS/SSL\f1 and
\fBTLS/SSL Configuration for Clients\f1 .
.RE
.PP
\fBmongod \-\-sslClusterCAFile\f1
.RS
.PP
Use \fB\-\-tlsClusterCAFile\f1\f1
instead.
.PP
Specifies the \&.pem file that contains the root certificate
chain from the Certificate Authority used to validate the certificate
presented by a client establishing a connection. Specify the file
name of the \&.pem file using relative or absolute paths.
\fB\-\-sslClusterCAFile\f1\f1 requires that
\fB\-\-sslCAFile\f1\f1 is set.
.PP
If \fB\-\-sslClusterCAFile\f1\f1 does not specify the \&.pem
file for validating the certificate from a client establishing a
connection, the cluster uses the \&.pem file specified in the
\fB\-\-sslCAFile\f1\f1 option.
.PP
\fB\-\-sslClusterCAFile\f1\f1 lets you use separate Certificate
Authorities to verify the client to server and server to client
portions of the TLS handshake.
.PP
\fBWindows/macOS Only\f1
.RS
.PP
If using \fB\-\-sslCertificateSelector\f1\f1 and/or
\fB\-\-sslClusterCertificateSelector\f1\f1, do \fBnot\f1 use
\fB\-\-sslClusterCAFile\f1\f1 to specify the root and
intermediate CA certificates. Store all CA certificates required to
validate the full trust chain of the
\fB\-\-sslCertificateSelector\f1\f1 and/or
\fB\-\-sslClusterCertificateSelector\f1\f1 certificates in the
secure certificate store.
.RE
.PP
For more information about TLS/SSL and MongoDB, see
\fBConfigure mongod\f1 and mongos\f1 for TLS/SSL\f1 and
\fBTLS/SSL Configuration for Clients\f1 .
.RE
.PP
\fBmongod \-\-sslCRLFile\f1
.RS
.PP
Use \fB\-\-tlsCRLFile\f1\f1 instead.
.PP
Specifies the \&.pem file that contains the Certificate Revocation
List. Specify the file name of the \&.pem file using relative or
absolute paths.
.RS
.IP \(bu 2
Starting in MongoDB 4.0, you cannot specify a CRL file on
macOS. Instead, you can use the system SSL certificate store,
which uses OCSP (Online Certificate Status Protocol) to
validate the revocation status of certificates. See
\fB\-\-sslCertificateSelector\f1\f1 in MongoDB 4.0 and
\fB\-\-tlsCertificateSelector\f1\f1 in MongoDB 4.2+ to use the
system SSL certificate store.
.IP \(bu 2
Starting in version 4.4, to check for certificate revocation,
MongoDB \fBenables\f1\f1 the use of OCSP
(Online Certificate Status Protocol) by default as an
alternative to specifying a CRL file or using the system SSL
certificate store.
.RE
.PP
For more information about TLS/SSL and MongoDB, see
\fBConfigure mongod\f1 and mongos\f1 for TLS/SSL\f1 and
\fBTLS/SSL Configuration for Clients\f1 .
.RE
.PP
\fBmongod \-\-sslAllowInvalidCertificates\f1
.RS
.PP
Use \fB\-\-tlsAllowInvalidCertificates\f1\f1 instead.
.PP
Bypasses the validation checks for TLS/SSL certificates on other
servers in the cluster and allows the use of invalid certificates to
connect.
.PP
Starting in MongoDB 4.2, if you specify
\fB\-\-tlsAllowInvalidateCertificates\f1 or
\fBnet.tls.allowInvalidCertificates: true\f1 when using x.509
authentication, an invalid certificate is only sufficient to
establish a TLS connection but it is \fIinsufficient\f1 for
authentication.
.PP
When using
the \fB\-\-sslAllowInvalidCertificates\f1\f1 setting, MongoDB
logs a warning regarding the use of the invalid certificate.
.PP
For more information about TLS/SSL and MongoDB, see
\fBConfigure mongod\f1 and mongos\f1 for TLS/SSL\f1 and
\fBTLS/SSL Configuration for Clients\f1 .
.RE
.PP
\fBmongod \-\-sslAllowInvalidHostnames\f1
.RS
.PP
Use \fB\-\-tlsAllowInvalidHostnames\f1\f1 instead.
.PP
Disables the validation of the hostnames in TLS/SSL certificates,
when connecting to other members of the replica set or sharded cluster
for inter\-process authentication. This allows \fBmongod\f1\f1 to connect
to other members if the hostnames in their certificates do not match
their configured hostname.
.PP
For more information about TLS/SSL and MongoDB, see
\fBConfigure mongod\f1 and mongos\f1 for TLS/SSL\f1 and
\fBTLS/SSL Configuration for Clients\f1 .
.RE
.PP
\fBmongod \-\-sslAllowConnectionsWithoutCertificates\f1
.RS
.PP
Use \fB\-\-tlsAllowConnectionsWithoutCertificates\f1\f1 instead.
.PP
For clients that do not present certificates, \fBmongod\f1\f1 bypasses
TLS/SSL certificate validation when establishing the connection.
.PP
For clients that present a certificate, however, \fBmongod\f1\f1 performs
certificate validation using the root certificate chain specified by
\fB\-\-sslCAFile\f1 and reject clients with invalid certificates.
.PP
Use the \fB\-\-sslAllowConnectionsWithoutCertificates\f1\f1 option if you have a mixed deployment that includes
clients that do not or cannot present certificates to the \fBmongod\f1\f1\&.
.PP
For more information about TLS/SSL and MongoDB, see
\fBConfigure mongod\f1 and mongos\f1 for TLS/SSL\f1 and
\fBTLS/SSL Configuration for Clients\f1 .
.RE
.PP
\fBmongod \-\-sslDisabledProtocols\f1
.RS
.PP
Use \fB\-\-tlsDisabledProtocols\f1\f1 instead.
.PP
Prevents a MongoDB server running with TLS/SSL from accepting
incoming connections that use a specific protocol or protocols. To
specify multiple protocols, use a comma separated list of protocols.
.PP
\fB\-\-sslDisabledProtocols\f1\f1 recognizes the following protocols: \fBTLS1_0\f1, \fBTLS1_1\f1,
\fBTLS1_2\f1, and starting in version 4.0.4 (and 3.6.9 and 3.4.24), \fBTLS1_3\f1\&.
.RS
.IP \(bu 2
On macOS, you cannot disable \fBTLS1_1\f1 and leave both \fBTLS1_0\f1 and
\fBTLS1_2\f1 enabled. You must disable at least one of the other
two, for example, \fBTLS1_0,TLS1_1\f1\&.
.IP \(bu 2
To list multiple protocols, specify as a comma separated list of
protocols. For example \fBTLS1_0,TLS1_1\f1\&.
.IP \(bu 2
Specifying an unrecognized protocol will prevent the server from
starting.
.IP \(bu 2
The specified disabled protocols overrides any default disabled
protocols.
.RE
.PP
Starting in version 4.0, MongoDB disables the use of TLS 1.0 if TLS
1.1+ is available on the system. To enable the disabled TLS 1.0,
specify \fBnone\f1 to \fB\-\-sslDisabledProtocols\f1\f1\&. See \fBDisable TLS 1.0\f1\&.
.PP
Members of replica sets and sharded clusters must speak at least one
protocol in common.
.PP
\fBDisallow Protocols\f1
.RE
.PP
\fBmongod \-\-sslFIPSMode\f1
.RS
.PP
Use \fB\-\-tlsFIPSMode\f1\f1 instead.
.PP
Directs the \fBmongod\f1\f1 to use the FIPS mode of the  TLS/SSL
library. Your system must have a FIPS
compliant library to use the \fB\-\-sslFIPSMode\f1\f1 option.
.PP
FIPS\-compatible TLS/SSL is
available only in MongoDB Enterprise (http://www.mongodb.com/products/mongodb\-enterprise\-advanced?tck=docs_server)\&. See
\fBConfigure MongoDB for FIPS\f1 for more information.
.RE
.SS PROFILER OPTIONS
.PP
\fBmongod \-\-profile\f1
.RS
.PP
\fIDefault\f1: 0
.PP
Configures the \fBdatabase profiler\f1 level.
The following profiler levels are available:
.RS
.IP \(bu 2
.RS
.IP \(bu 4
Level
.IP \(bu 4
Description
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fB0\f1
.IP \(bu 4
The profiler is off and does not collect any data.
This is the default profiler level.
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fB1\f1
.IP \(bu 4
The profiler collects data for operations that take longer
than the value of \fBslowms\f1 or that match a \fBfilter\f1\&.
.IP
When a filter is set:
.RS
.IP \(bu 6
The \fBslowms\f1 and \fBsampleRate\f1 options are not used for
profiling.
.IP \(bu 6
The profiler only captures operations that match the
\fBfilter\f1\&.
.RE
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fB2\f1
.IP \(bu 4
The profiler collects data for all operations.
.RE
.RE
.PP
Profiling can impact performance and shares settings with the system
log. Carefully consider any performance and security implications
before configuring and enabling the profiler on a production
deployment.
.PP
See \fBProfiler Overhead\f1 for more information on
potential performance degradation.
.RE
.PP
\fBmongod \-\-slowms\f1
.RS
.PP
\fIDefault\f1: 100
.PP
The \fIslow\f1 operation time threshold, in milliseconds. Operations
that run for longer than this threshold are considered \fIslow\f1\&.
.PP
When \fBlogLevel\f1\f1 is set to \fB0\f1, MongoDB records \fIslow\f1
operations to the diagnostic log at a rate determined by
\fBslowOpSampleRate\f1\f1\&.
.PP
At higher \fBlogLevel\f1\f1 settings, all operations appear in
the diagnostic log regardless of their latency with the following
exception: the logging of \fBslow oplog entry messages by the
secondaries\f1\&. The secondaries log only the slow oplog
entries; increasing the \fBlogLevel\f1\f1 does not log all
oplog entries.
.PP
For \fBmongod\f1\f1 instances, \fB\-\-slowms\f1\f1 affects the diagnostic log
and, if enabled, the profiler.
.PP
\fBDatabase Profiler\f1
.RE
.PP
\fBmongod \-\-slowOpSampleRate\f1
.RS
.PP
\fIDefault\f1: 1.0
.PP
The fraction of \fIslow\f1 operations that should be profiled or logged.
\fB\-\-slowOpSampleRate\f1\f1 accepts values between 0 and 1, inclusive.
.PP
\fB\-\-slowOpSampleRate\f1\f1 does not affect the \fBslow oplog entry logging\f1 by the secondary members of a replica set. Secondary
members log all oplog entries that take longer than the slow
operation threshold regardless of the \fB\-\-slowOpSampleRate\f1\f1\&.
.PP
For \fBmongod\f1\f1 instances, \fB\-\-slowOpSampleRate\f1\f1 affects the
diagnostic log and, if enabled, the profiler.
.RE
.SS AUDIT OPTIONS
.PP
\fBmongod \-\-auditCompressionMode\f1
.RS
.PP
Specifies the compression mode for \fBaudit log encryption\f1\&. You must also enable audit log
encryption using either \fB\-\-auditEncryptionKeyUID\f1\f1 or
\fB\-\-auditLocalKeyFile\f1\f1\&.
.PP
\fB\-\-auditCompressionMode\f1\f1 can be set to one of these values:
.RS
.IP \(bu 2
.RS
.IP \(bu 4
Value
.IP \(bu 4
Description
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fBzstd\f1
.IP \(bu 4
Use the \fBzstd\f1 algorithm to compress the audit log.
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fBnone\f1 \fI(default)\f1
.IP \(bu 4
Do not compress the audit log.
.RE
.RE
.PP
Available only in MongoDB Enterprise (http://www.mongodb.com/products/mongodb\-enterprise\-advanced?tck=docs_server)\&.
MongoDB Enterprise and Atlas have different configuration
requirements.
.RE
.PP
\fBmongod \-\-auditDestination\f1
.RS
.PP
Enables \fBauditing\f1 and specifies where
\fBmongod\f1\f1 sends all audit events.
.PP
\fB\-\-auditDestination\f1\f1 can have one of the following values:
.RS
.IP \(bu 2
.RS
.IP \(bu 4
Value
.IP \(bu 4
Description
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fBsyslog\f1
.IP \(bu 4
Output the audit events to syslog in JSON format. Not available on
Windows. Audit messages have a syslog severity level of \fBinfo\f1
and a facility level of \fBuser\f1\&.
.IP
The syslog message limit can result in the truncation of
audit messages. The auditing system will neither detect the
truncation nor error upon its occurrence.
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fBconsole\f1
.IP \(bu 4
Output the audit events to \fBstdout\f1 in JSON format.
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fBfile\f1
.IP \(bu 4
Output the audit events to the file specified in
\fB\-\-auditPath\f1\f1 in the format specified in
\fB\-\-auditFormat\f1\f1\&.
.RE
.RE
.PP
Available only in MongoDB Enterprise (http://www.mongodb.com/products/mongodb\-enterprise\-advanced?tck=docs_server)
and MongoDB Atlas (https://cloud.mongodb.com/user#/atlas/login)\&.
.RE
.PP
\fBmongod \-\-auditEncryptionKeyUID\f1
.RS
.PP
Specifies the unique identifier of the Key Management
Interoperability Protocol (KMIP) key for \fBaudit log encryption\f1\&.
.PP
You cannot use \fB\-\-auditEncryptionKeyUID\f1\f1 and
\fB\-\-auditLocalKeyFile\f1\f1 together.
.PP
Available only in MongoDB Enterprise (http://www.mongodb.com/products/mongodb\-enterprise\-advanced?tck=docs_server)\&.
MongoDB Enterprise and Atlas have different configuration
requirements.
.RE
.PP
\fBmongod \-\-auditFormat\f1
.RS
.PP
Specifies the format of the output file for \fBauditing\f1 if \fB\-\-auditDestination\f1\f1 is \fBfile\f1\&. The
\fB\-\-auditFormat\f1\f1 option can have one of the following values:
.RS
.IP \(bu 2
.RS
.IP \(bu 4
Value
.IP \(bu 4
Description
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fBJSON\f1
.IP \(bu 4
Output the audit events in JSON format to the file specified
in \fB\-\-auditPath\f1\f1\&.
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fBBSON\f1
.IP \(bu 4
Output the audit events in BSON binary format to the file
specified in \fB\-\-auditPath\f1\f1\&.
.RE
.RE
.PP
Printing audit events to a file in JSON format degrades server
performance more than printing to a file in BSON format.
.PP
Available only in MongoDB Enterprise (http://www.mongodb.com/products/mongodb\-enterprise\-advanced?tck=docs_server)
and MongoDB Atlas (https://cloud.mongodb.com/user#/atlas/login)\&.
.RE
.PP
\fBmongod \-\-auditLocalKeyFile\f1
.RS
.PP
Specifies the path and file name for a local audit key file for
\fBaudit log encryption\f1\&.
.PP
Only use \fB\-\-auditLocalKeyFile\f1\f1 for testing because the key is
not secured. To secure the key, use
\fB\-\-auditEncryptionKeyUID\f1\f1 and an external Key
Management Interoperability Protocol (KMIP) server.
.PP
You cannot use \fB\-\-auditLocalKeyFile\f1\f1 and
\fB\-\-auditEncryptionKeyUID\f1\f1 together.
.PP
Available only in MongoDB Enterprise (http://www.mongodb.com/products/mongodb\-enterprise\-advanced?tck=docs_server)\&.
MongoDB Enterprise and Atlas have different configuration
requirements.
.RE
.PP
\fBmongod \-\-auditPath\f1
.RS
.PP
Specifies the output file for \fBauditing\f1 if
\fB\-\-auditDestination\f1\f1 has value of \fBfile\f1\&. The \fB\-\-auditPath\f1\f1
option can take either a full path name or a relative path name.
.PP
Available only in MongoDB Enterprise (http://www.mongodb.com/products/mongodb\-enterprise\-advanced?tck=docs_server)
and MongoDB Atlas (https://cloud.mongodb.com/user#/atlas/login)\&.
.RE
.PP
\fBmongod \-\-auditFilter\f1
.RS
.PP
Specifies the filter to limit the \fBtypes of operations\f1 the \fBaudit system\f1 records. The option takes a string representation
of a query document of the form:
.PP
.EX
  { <field1>: <expression1>, ... }
.EE
.PP
The \fB<field>\f1 can be \fBany field in the audit message\f1, including fields returned in the
\fBparam\f1 document. The
\fB<expression>\f1 is a \fBquery condition expression\f1\&.
.PP
To specify an audit filter, enclose the filter document in single
quotes to pass the document as a string.
.PP
To specify the audit filter in a \fBconfiguration file\f1, you must use the YAML format of
the configuration file.
.PP
Available only in MongoDB Enterprise (http://www.mongodb.com/products/mongodb\-enterprise\-advanced?tck=docs_server)
and MongoDB Atlas (https://cloud.mongodb.com/user#/atlas/login)\&.
.RE
.SS SNMP OPTIONS
.PP
MongoDB Enterprise on macOS does \fInot\f1 include support for SNMP due
to SERVER\-29352 (https://jira.mongodb.org/browse/SERVER\-29352)\&.
.PP
\fBmongod \-\-snmp\-disabled\f1
.RS
.PP
Disables SNMP access to \fBmongod\f1\f1\&. The option is incompatible
with \fB\-\-snmp\-subagent\f1\f1 and \fB\-\-snmp\-master\f1\f1\&.
.RE
.PP
\fBmongod \-\-snmp\-subagent\f1
.RS
.PP
Runs SNMP as a subagent. The option is incompatible with \fB\-\-snmp\-disabled\f1\f1\&.
.RE
.PP
\fBmongod \-\-snmp\-master\f1
.RS
.PP
Runs SNMP as a master. The option is incompatible with \fB\-\-snmp\-disabled\f1\f1\&.
.RE
.RS
.IP \(bu 2
\fBMonitor MongoDB With SNMP on Linux\f1
.IP \(bu 2
\fBMonitor MongoDB Windows with SNMP\f1
.IP \(bu 2
\fBTroubleshoot SNMP\f1
.RE
.SS INMEMORY OPTIONS
.PP
\fBmongod \-\-inMemorySizeGB\f1
.RS
.PP
\fIDefault\f1: 50% of physical RAM less 1 GB
.PP
Values can range from 256MB to 10TB and can be a float.
.PP
Maximum amount of memory to allocate for \fBin\-memory storage
engine\f1 data, including indexes, oplog if the
\fBmongod\f1\f1 is part of replica set, replica set or sharded
cluster metadata, etc.
.PP
By default, the in\-memory storage engine uses 50% of physical RAM minus
1 GB.
.PP
Available in MongoDB Enterprise only.
.RE
.SS ENCRYPTION KEY MANAGEMENT OPTIONS
.PP
\fBmongod \-\-enableEncryption\f1
.RS
.PP
\fIDefault\f1: false
.PP
Enables encryption for the WiredTiger storage engine. This option
must be enabled in order to pass in encryption keys and
configurations.
.PP
Available in MongoDB Enterprise only.
.RE
.PP
\fBmongod \-\-encryptionCipherMode\f1
.RS
.PP
\fIDefault\f1: AES256\-CBC
.PP
The cipher mode to use for encryption at rest:
.RS
.IP \(bu 2
.RS
.IP \(bu 4
Mode
.IP \(bu 4
Description
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fBAES256\-CBC\f1
.IP \(bu 4
256\-bit Advanced Encryption Standard in Cipher Block Chaining
Mode
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fBAES256\-GCM\f1
.IP \(bu 4
256\-bit Advanced Encryption Standard in Galois/Counter Mode
.IP
MongoDB Enterprise on Windows no longer supports \fBAES256\-GCM\f1\&. This
cipher is now available only on Linux.
.RE
.RE
.PP
Available in MongoDB Enterprise only.
.RE
.PP
\fBmongod \-\-encryptionKeyFile\f1
.RS
.PP
The path to the local keyfile when managing keys via process \fIother
than\f1 KMIP. Only set when managing keys via process other than KMIP.
If data is already encrypted using KMIP, MongoDB will throw an error.
.PP
The keyfile can contain only a single key. The key is either a 16 or
32 character string.
.PP
Requires \fB\-\-enableEncryption\f1\f1\&.
.PP
Available in MongoDB Enterprise only.
.RE
.PP
\fBmongod \-\-kmipKeyIdentifier\f1
.RS
.PP
Unique KMIP identifier for an existing key within the KMIP server.
Include to use the key associated with the identifier as the system
key. You can only use the setting the first time you enable
encryption for the \fBmongod\f1\f1 instance. Requires
\fB\-\-enableEncryption\f1\f1\&.
.PP
If unspecified, MongoDB will request that the KMIP server create a
new key to utilize as the system key.
.PP
If the KMIP server cannot locate a key with the specified identifier
or the data is already encrypted with a key, MongoDB will throw an
error
.PP
Available in MongoDB Enterprise only.
.RE
.PP
\fBmongod \-\-kmipRotateMasterKey\f1
.RS
.PP
\fIDefault\f1: false
.PP
If true, rotate the master key and re\-encrypt the internal
keystore.
.PP
Available in MongoDB Enterprise only.
.PP
\fBKMIP Master Key Rotation\f1
.RE
.PP
\fBmongod \-\-kmipServerName\f1
.RS
.PP
Hostname or IP address of the KMIP server to connect to. Requires
\fB\-\-enableEncryption\f1\f1\&.
.PP
Starting in MongoDB 4.2.1 (and 4.0.14), you can specify multiple KMIP
servers as a comma\-separated list, e.g.
\fBserver1.example.com,server2.example.com\f1\&. On startup, the
\fBmongod\f1\f1 will attempt to establish a connection to each
server in the order listed, and will select the first server to
which it can successfully establish a connection. KMIP server
selection occurs only at startup.
.PP
When connecting to a KMIP server, the \fBmongod\f1\f1
verifies that the specified \fB\-\-kmipServerName\f1\f1 matches the
Subject Alternative Name \fBSAN\f1 (or, if \fBSAN\f1 is not present, the
Common Name \fBCN\f1) in the certificate presented by the KMIP server.
If \fBSAN\f1 is present, \fBmongod\f1\f1 does not match against
the \fBCN\f1\&. If the hostname does not match the \fBSAN\f1 (or \fBCN\f1),
the \fBmongod\f1\f1 will fail to connect.
.PP
Starting in MongoDB 4.2, when performing comparison of SAN, MongoDB
supports comparison of DNS names or IP addresses. In previous versions,
MongoDB only supports comparisons of DNS names.
.PP
Available in MongoDB Enterprise only.
.RE
.PP
\fBmongod \-\-kmipPort\f1
.RS
.PP
\fIDefault\f1: 5696
.PP
Port number to use to communicate with the KMIP server.
Requires \fB\-\-kmipServerName\f1\f1\&. Requires
\fB\-\-enableEncryption\f1\f1\&.
.PP
If specifying multiple KMIP servers with \fB\-\-kmipServerName\f1\f1,
the \fBmongod\f1\f1 will use the port specified with
\fB\-\-kmipPort\f1\f1 for all provided KMIP servers.
.PP
Available in MongoDB Enterprise only.
.RE
.PP
\fBmongod \-\-kmipConnectRetries\f1
.RS
.PP
\fIDefault\f1: 0
.PP
How many times to retry the initial connection to the KMIP server.
Use together with \fB\-\-kmipConnectTimeoutMS\f1\f1 to
control how long the \fBmongod\f1\f1 waits for a response
between each retry.
.PP
Available in MongoDB Enterprise only.
.RE
.PP
\fBmongod \-\-kmipConnectTimeoutMS\f1
.RS
.PP
\fIDefault\f1: 5000
.PP
Timeout in milliseconds to wait for a response from the KMIP server.
If the \fB\-\-kmipConnectRetries\f1\f1 setting is specified,
the \fBmongod\f1\f1 will wait up to the value specified with
\fB\-\-kmipConnectTimeoutMS\f1\f1 for each retry.
.PP
Value must be \fB1000\f1 or greater.
.PP
Available in MongoDB Enterprise only.
.RE
.PP
\fBmongod \-\-kmipClientCertificateSelector\f1
.RS
.PP
Available on Windows and macOS as an alternative to
\fB\-\-kmipClientCertificateFile\f1\f1\&.
.PP
\fB\-\-kmipClientCertificateFile\f1\f1 and \fB\-\-kmipClientCertificateSelector\f1\f1 options are mutually exclusive. You can only
specify one.
.PP
Specifies a certificate property in order to select a matching
certificate from the operating system\(aqs certificate store to
authenticate MongoDB to the KMIP server.
.PP
\fB\-\-kmipClientCertificateSelector\f1\f1 accepts an argument of the format \fB<property>=<value>\f1
where the property can be one of the following:
.RS
.IP \(bu 2
.RS
.IP \(bu 4
Property
.IP \(bu 4
Value type
.IP \(bu 4
Description
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fBsubject\f1
.IP \(bu 4
ASCII string
.IP \(bu 4
Subject name or common name on certificate
.RE
.IP \(bu 2
.RS
.IP \(bu 4
\fBthumbprint\f1
.IP \(bu 4
hex string
.IP \(bu 4
A sequence of bytes, expressed as hexadecimal, used to
identify a public key by its SHA\-1 digest.
.IP
The \fBthumbprint\f1 is sometimes referred to as a
\fBfingerprint\f1\&.
.RE
.RE
.PP
Available in MongoDB Enterprise only.
.RE
.PP
\fBmongod \-\-kmipClientCertificateFile\f1
.RS
.PP
String containing the path to the client certificate used for
authenticating MongoDB to the KMIP server. Requires that a
\fB\-\-kmipServerName\f1\f1 be provided.
.PP
Starting in 4.0, on macOS or Windows, you can use a certificate
from the operating system\(aqs secure store instead of a PEM key
file. See \fB\-\-kmipClientCertificateSelector\f1\f1\&.
.PP
Available in MongoDB Enterprise only.
.RE
.PP
\fBmongod \-\-kmipClientCertificatePassword\f1
.RS
.PP
The password (if one exists) for the client certificate passed into
\fB\-\-kmipClientCertificateFile\f1\f1\&. Is used for
authenticating MongoDB to the KMIP server. Requires that a
\fB\-\-kmipClientCertificateFile\f1\f1 be provided.
.PP
Available in MongoDB Enterprise only.
.RE
.PP
\fBmongod \-\-kmipServerCAFile\f1
.RS
.PP
Path to CA File. Used for validating secure client connection to
KMIP server.
.PP
Starting in 4.0, on macOS or Windows, you can use a certificate
from the operating system\(aqs secure store instead of a PEM key
file. See \fB\-\-kmipClientCertificateSelector\f1\f1\&. When using the secure
store, you do not need to, but can, also specify the \fB\-\-kmipServerCAFile\f1\f1\&.
.RE
.PP
\fBmongod \-\-kmipActivateKeys\f1
.RS
.PP
\fIDefault\f1: true
.PP
Activates all newly created KMIP keys upon creation and then periodically
checks those keys are in an active state.
.PP
When \fB\-\-kmipActivateKeys\f1 is \fBtrue\f1 and you have existing keys on a
KMIP server, the key must be activated first or the \fBmongod\f1\f1 node
will fail to start.
.PP
If the key being used by the mongod transitions into a non\-active state,
the \fBmongod\f1\f1 node will shut down unless \fBkmipActivateKeys\f1 is
false. To ensure you have an active key, rotate the KMIP master key by
using \fB\-\-kmipRotateMasterKey\f1\f1\&.
.RE
.PP
\fBmongod \-\-kmipKeyStatePollingSeconds\f1
.RS
.PP
\fIDefault\f1: 900 seconds
.PP
Frequency in seconds at which mongod polls the KMIP server for active keys.
.PP
To disable disable polling, set the value to \fB\-1\f1\&.
.RE
.PP
\fBmongod \-\-eseDatabaseKeyRollover\f1
.RS
.PP
Roll over the \fBencrypted storage engine\f1 database keys configured with
\fBAES256\-GCM\f1 cipher.
.PP
When \fBmongod\f1\f1 instance is started with this option, the
instance rotates the keys and exits.
.PP
Available in MongoDB Enterprise only.
.RE