Skip to content

Commit c9035bc

Browse files
committed
DOCSP-15360, DOCSP-15404 foreport code block bash part2
1 parent 8562c94 commit c9035bc

File tree

142 files changed

+620
-620
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

142 files changed

+620
-620
lines changed

source/about.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ complete the
7676
You can clone the repository by issuing the following command at your
7777
system shell:
7878

79-
.. code-block:: sh
79+
.. code-block:: bash
8080

8181
git clone git://github.com/mongodb/docs.git
8282

source/administration/configuration.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,20 @@ provided. This initialization script can be used to start the
3333
- On Linux systems that use the **systemd** init system (the
3434
``systemctl`` command):
3535

36-
.. code-block:: sh
36+
.. code-block:: bash
3737

3838
sudo systemctl start mongod
3939

4040
- On Linux systems that use the **SystemV init** init system (the
4141
``service`` command):
4242

43-
.. code-block:: sh
43+
.. code-block:: bash
4444

4545
sudo service mongod start
4646

4747
- On macOS, using the ``brew`` package manger:
4848

49-
.. code-block:: sh
49+
.. code-block:: bash
5050

5151
brew services start mongodb-community@{+version+}
5252

@@ -58,7 +58,7 @@ a MongoDB instance with this configuration file by using either the
5858
:option:`--config <mongod --config>` or :option:`-f <mongod --config>`
5959
options to :binary:`~bin.mongod`. For example, on Linux:
6060

61-
.. code-block:: sh
61+
.. code-block:: bash
6262

6363
mongod --config /etc/mongod.conf
6464
mongod -f /etc/mongod.conf

source/administration/production-notes.txt

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -359,11 +359,11 @@ NUMA for use with MongoDB.
359359

360360
#. Disable *zone reclaim* with one of the following commands:
361361

362-
.. code-block:: sh
362+
.. code-block:: bash
363363

364364
echo 0 | sudo tee /proc/sys/vm/zone_reclaim_mode
365365

366-
.. code-block:: sh
366+
.. code-block:: bash
367367

368368
sudo sysctl -w vm.zone_reclaim_mode=0
369369

@@ -372,7 +372,7 @@ NUMA for use with MongoDB.
372372
platform's init system. Run the following command to determine which
373373
init system is in use on your platform:
374374

375-
.. code-block:: sh
375+
.. code-block:: bash
376376

377377
ps --no-headers -o comm 1
378378

@@ -405,42 +405,42 @@ NUMA for use with MongoDB.
405405

406406
#. Copy the default MongoDB service file:
407407

408-
.. code-block:: sh
408+
.. code-block:: bash
409409

410410
sudo cp /lib/systemd/system/mongod.service /etc/systemd/system/
411411

412412
#. Edit the ``/etc/systemd/system/mongod.service`` file, and
413413
update the ``ExecStart`` statement to begin with:
414414

415-
.. code-block:: sh
415+
.. code-block:: bash
416416

417417
/usr/bin/numactl --interleave=all
418418

419419
.. example::
420420

421421
If your existing ``ExecStart`` statement reads:
422422

423-
.. code-block:: sh
423+
.. code-block:: bash
424424
:copyable: false
425425

426426
ExecStart=/usr/bin/mongod --config /etc/mongod.conf
427427

428428
Update that statement to read:
429429

430-
.. code-block:: sh
430+
.. code-block:: bash
431431
:copyable: false
432432

433433
ExecStart=/usr/bin/numactl --interleave=all /usr/bin/mongod --config /etc/mongod.conf
434434

435435
#. Apply the change to ``systemd``:
436436

437-
.. code-block:: sh
437+
.. code-block:: bash
438438

439439
sudo systemctl daemon-reload
440440

441441
#. Restart any running ``mongod`` instances:
442442

443-
.. code-block:: sh
443+
.. code-block:: bash
444444

445445
sudo systemctl stop mongod
446446
sudo systemctl start mongod
@@ -464,7 +464,7 @@ NUMA for use with MongoDB.
464464
#. Configure each of your custom init scripts to start each
465465
MongoDB instance via ``numactl``:
466466

467-
.. code-block:: sh
467+
.. code-block:: bash
468468

469469
numactl --interleave=all <path> <options>
470470

@@ -474,7 +474,7 @@ NUMA for use with MongoDB.
474474

475475
.. example::
476476

477-
.. code-block:: sh
477+
.. code-block:: bash
478478
:copyable: false
479479

480480
numactl --interleave=all /usr/local/bin/mongod -f /etc/mongod.conf
@@ -702,14 +702,14 @@ example:
702702
- On :abbr:`RHEL (Red Hat Enterprise Linux)` / CentOS, the following
703703
command updates the system-provided GNU C Library:
704704

705-
.. code-block:: sh
705+
.. code-block:: bash
706706

707707
sudo yum update glibc
708708

709709
- On Ubuntu / Debian, the following command updates the system-provided
710710
GNU C Library:
711711

712-
.. code-block:: sh
712+
.. code-block:: bash
713713

714714
sudo apt-get install libc6
715715

@@ -762,21 +762,21 @@ minimum. As such you should set ``vm.swappiness`` to either ``1`` or
762762

763763
- To check the current swappiness setting on your system, run:
764764

765-
.. code-block:: sh
765+
.. code-block:: bash
766766

767767
cat /proc/sys/vm/swappiness
768768

769769
- To change swappiness on your system:
770770

771771
#. Edit the ``/etc/sysctl.conf`` file and add the following line:
772772

773-
.. code-block:: sh
773+
.. code-block:: bash
774774

775775
vm.swappiness = 1
776776

777777
#. Run the following command to apply the setting:
778778

779-
.. code-block:: sh
779+
.. code-block:: bash
780780

781781
sudo sysctl -p
782782

@@ -865,7 +865,7 @@ Typically these messages do not require intervention; however, you can
865865
use the following operations to determine the symbol versions that
866866
:binary:`~bin.mongod` expects:
867867

868-
.. code-block:: sh
868+
.. code-block:: bash
869869

870870
objdump -T <path to mongod>/mongod | grep " SSL_"
871871
objdump -T <path to mongod>/mongod | grep " CRYPTO_"
@@ -882,7 +882,7 @@ The last two strings in this output are the symbol version and symbol
882882
name. Compare these values with the values returned by the following
883883
operations to detect symbol version mismatches:
884884

885-
.. code-block:: sh
885+
.. code-block:: bash
886886

887887
objdump -T <path to TLS/SSL libs>/libssl.so.1*
888888
objdump -T <path to TLS/SSL libs>/libcrypto.so.1*

source/appendix/security/appendixA-openssl-ca.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ B. Generate the Test CA PEM File
105105

106106
#. Create the :red:`test` CA key file :file:`mongodb-test-ca.key`.
107107

108-
.. code-block:: sh
108+
.. code-block:: bash
109109

110110
openssl genrsa -out mongodb-test-ca.key 4096
111111

@@ -120,13 +120,13 @@ B. Generate the Test CA PEM File
120120
generated key file. When asked for Distinguished Name values, enter
121121
the appropriate values for your :red:`test` CA certificate.
122122

123-
.. code-block:: sh
123+
.. code-block:: bash
124124

125125
openssl req -new -x509 -days 1826 -key mongodb-test-ca.key -out mongodb-test-ca.crt -config openssl-test-ca.cnf
126126

127127
#. Create the private key for the intermediate certificate.
128128

129-
.. code-block:: sh
129+
.. code-block:: bash
130130

131131
openssl genrsa -out mongodb-test-ia.key 4096
132132

@@ -141,20 +141,20 @@ B. Generate the Test CA PEM File
141141
certificate. When asked for Distinguished Name values, enter the
142142
appropriate values for your :red:`test` Intermediate Authority certificate.
143143

144-
.. code-block:: sh
144+
.. code-block:: bash
145145

146146
openssl req -new -key mongodb-test-ia.key -out mongodb-test-ia.csr -config openssl-test-ca.cnf
147147

148148
#. Create the intermediate certificate :file:`mongodb-test-ia.crt`.
149149

150-
.. code-block:: sh
150+
.. code-block:: bash
151151

152152
openssl x509 -sha256 -req -days 730 -in mongodb-test-ia.csr -CA mongodb-test-ca.crt -CAkey mongodb-test-ca.key -set_serial 01 -out mongodb-test-ia.crt -extfile openssl-test-ca.cnf -extensions v3_ca
153153

154154
#. Create the :red:`test` CA PEM file from the :red:`test` CA certificate :file:`mongod-test-ca.crt` and
155155
:red:`test` intermediate certificate :file:`mongodb-test-ia.crt`.
156156

157-
.. code-block:: sh
157+
.. code-block:: bash
158158

159159
cat mongodb-test-ca.crt mongodb-test-ia.crt > test-ca.pem
160160

source/appendix/security/appendixB-openssl-server.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ B. Generate the Test PEM File for Server
134134

135135
#. Create the :red:`test` key file :file:`mongodb-test-server1.key`.
136136

137-
.. code-block:: sh
137+
.. code-block:: bash
138138

139139
openssl genrsa -out mongodb-test-server1.key 4096
140140

@@ -152,19 +152,19 @@ B. Generate the Test PEM File for Server
152152
exactly across the member certificates: Organization (``O``),
153153
Organizational Unit (``OU``), the Domain Component (``DC``).
154154

155-
.. code-block:: sh
155+
.. code-block:: bash
156156

157157
openssl req -new -key mongodb-test-server1.key -out mongodb-test-server1.csr -config openssl-test-server.cnf
158158

159159
#. Create the :red:`test` server certificate :file:`mongodb-test-server1.crt`.
160160

161-
.. code-block:: sh
161+
.. code-block:: bash
162162

163163
openssl x509 -sha256 -req -days 365 -in mongodb-test-server1.csr -CA mongodb-test-ia.crt -CAkey mongodb-test-ia.key -CAcreateserial -out mongodb-test-server1.crt -extfile openssl-test-server.cnf -extensions v3_req
164164

165165
#. Create the :red:`test` PEM file for the server.
166166

167-
.. code-block:: sh
167+
.. code-block:: bash
168168

169169
cat mongodb-test-server1.crt mongodb-test-server1.key > test-server1.pem
170170

@@ -194,7 +194,7 @@ B. Generate the Test PEM File for Server
194194
certificates, create a pkcs-12 file to add to Keychain Access
195195
instead of a PEM file:
196196

197-
.. code-block:: sh
197+
.. code-block:: bash
198198

199199
openssl pkcs12 -export -out test-server1.pfx -inkey mongodb-test-server1.key -in mongodb-test-server1.crt -certfile mongodb-test-ia.crt
200200

source/appendix/security/appendixC-openssl-client.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ B. Generate the Test PEM File for Client
101101

102102
#. Create the :red:`test` key file :file:`mongodb-test-client.key`.
103103

104-
.. code-block:: sh
104+
.. code-block:: bash
105105

106106
openssl genrsa -out mongodb-test-client.key 4096
107107

@@ -116,19 +116,19 @@ B. Generate the Test PEM File for Client
116116
Organization (O), the Organizational Unit (OU) or the Domain
117117
Component (DC).
118118

119-
.. code-block:: sh
119+
.. code-block:: bash
120120

121121
openssl req -new -key mongodb-test-client.key -out mongodb-test-client.csr -config openssl-test-client.cnf
122122

123123
#. Create the :red:`test` client certificate :file:`mongodb-test-client.crt`.
124124

125-
.. code-block:: sh
125+
.. code-block:: bash
126126

127127
openssl x509 -sha256 -req -days 365 -in mongodb-test-client.csr -CA mongodb-test-ia.crt -CAkey mongodb-test-ia.key -CAcreateserial -out mongodb-test-client.crt -extfile openssl-test-client.cnf -extensions v3_req
128128

129129
#. Create the :red:`test` PEM file for the client.
130130

131-
.. code-block:: sh
131+
.. code-block:: bash
132132

133133
cat mongodb-test-client.crt mongodb-test-client.key > test-client.pem
134134

@@ -158,7 +158,7 @@ B. Generate the Test PEM File for Client
158158
create a PKCS 12 file to add to Keychain Access instead of a PEM
159159
file:
160160

161-
.. code-block:: sh
161+
.. code-block:: bash
162162

163163
openssl pkcs12 -export -out test-client.pfx -inkey mongodb-test-client.key -in mongodb-test-client.crt -certfile mongodb-test-ia.crt
164164

source/core/index-creation.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ While an index is being built, progress is written to the
366366
:doc:`MongoDB log</reference/log-messages>`. If an index build is
367367
stopped and resumed there will be log messages with fields like these:
368368

369-
.. code-block:: sh
369+
.. code-block:: bash
370370
:copyable: false
371371

372372
"msg":"Index build: wrote resumable state to disk",

source/core/inmemory.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ To select the in-memory storage engine, specify:
4141

4242
For example, from the command line:
4343

44-
.. code-block:: sh
44+
.. code-block:: bash
4545

4646
mongod --storageEngine inMemory --dbpath <path>
4747

@@ -88,7 +88,7 @@ the :doc:`YAML configuration file </reference/configuration-options>`.
8888
If a write operation would cause the data to exceed the specified
8989
memory size, MongoDB returns with the error:
9090

91-
.. code-block:: sh
91+
.. code-block:: bash
9292

9393
"WT_CACHE_FULL: operation would overflow cache"
9494

@@ -108,7 +108,7 @@ To specify a new size, use the
108108

109109
Or use the command-line option :option:`--inMemorySizeGB <mongod --inMemorySizeGB>`:
110110

111-
.. code-block:: sh
111+
.. code-block:: bash
112112

113113
mongod --storageEngine inMemory --dbpath <path> --inMemorySizeGB <newSize>
114114

source/core/replica-set-rollbacks.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ By default, when a rollback occurs, MongoDB writes the rollback data to
8989
``/var/log/mongodb/mongod.log``, you can use ``grep`` to
9090
search for instances of ``"rollback file"`` in the log:
9191

92-
.. code-block:: sh
92+
.. code-block:: bash
9393

9494
grep "rollback file" /var/log/mongodb/mongod.log
9595

source/core/retryable-writes.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ MongoDB Drivers
7777
To enable retryable writes in the :binary:`~bin.mongo` shell, use
7878
the :option:`--retryWrites <mongo --retryWrites>` command line option:
7979

80-
.. code-block:: sh
80+
.. code-block:: bash
8181

8282
mongo --retryWrites
8383

0 commit comments

Comments
 (0)