File tree Expand file tree Collapse file tree 1 file changed +25
-5
lines changed
content/operate/rs/installing-upgrading/configuring Expand file tree Collapse file tree 1 file changed +25
-5
lines changed Original file line number Diff line number Diff line change @@ -19,16 +19,36 @@ When you install or build the OS on the machine intended to host your Redis Ente
1919## Turn off swap
2020
2121To turn off swap in the OS of an existing server, VM, or instance, you
22- must have ` sudo ` access or be a root user to run the following commands:
22+ must have ` sudo ` access or be a root user to run the following commands.
2323
24- 1 . Turn off swap:
24+ Turn off swap:
25+
26+ ``` sh
27+ sudo swapoff -a
28+ ```
29+
30+ To ensure swap remains off even after a reboot:
31+
32+ 1 . Open ` /etc/fstab ` in a text editor and locate the entry that defines the swap space.
33+
34+ Example swap space entries:
2535
2636 ``` sh
27- sudo swapoff -a
37+ /swapfile none swap sw 0 0
2838 ```
2939
30- 1. Comment out the swap partitions configured in ` /etc/fstab` so swap remains off even after a reboot:
40+ ` ` ` sh
41+ UUID=1d5e1de7-226d-4f60-a99c-f7a31a045c59 none swap defaults 0 0
42+ ` ` `
43+
44+ 1. Comment out the swap space entry, then save the file.
45+
46+ Example swap space entries commented out:
47+
48+ ` ` ` sh
49+ # /swapfile none swap sw 0 0
50+ ` ` `
3151
3252 ` ` ` sh
33- sudo sed -i.bak ' s/^[^#].* swap.*/#&/ ' /etc/fstab
53+ # UUID=1d5e1de7-226d-4f60-a99c-f7a31a045c59 none swap defaults 0 0
3454 ` ` `
You can’t perform that action at this time.
0 commit comments