0

在 Linux 环境下关闭交换区的方法

 2 years ago
source link: https://www.codewoody.com/posts/19131/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Published Apr 11, 2022

在 Linux 环境下关闭交换区的方法

sudo swapoff -a

可以关闭交换区。但是重启机器后,交换区会重新出现。这是因为在 /etc/fstab 文件中定义了交换区的分区,需要将相应的条目删除。这样之后再重启就不会再次创建交换区。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK