swapoff实际上为swapon的符号连接,可用来关闭系统的交换区
语法格式:swapoff [参数]
常用参数:
-a | 将/etc/fstab文件中所有设置为swap的设备关闭 |
-h | 帮助信息 |
-V | 版本信息 |
参考实例
关闭交换分区:
[root@jiloc ~]# swapoff /dev/sda2
swapoff实际上为swapon的符号连接,可用来关闭系统的交换区
语法格式:swapoff [参数]
常用参数:
-a | 将/etc/fstab文件中所有设置为swap的设备关闭 |
-h | 帮助信息 |
-V | 版本信息 |
参考实例
关闭交换分区:
[root@jiloc ~]# swapoff /dev/sda2
2024腾讯云QCloud
618年中大促 2核2G4M云服务器 新老同享 99元/年
665443669
,获取商家优惠推送、禁言。
发表回复