其他分享
首页 > 其他分享> > swap命令

swap命令

作者:互联网

[root@liutao ~]# swapon -a   #开启swap
swapon: /swap: insecure permissions 0644, 0600 suggested.
[root@liutao ~]# free -m
              total        used        free      shared  buff/cache   available
Mem:           1838         550         831           0         456        1124
Swap:          1023           0        1023
[root@liutao ~]# swapoff -a   #关闭swap
[root@liutao ~]# free -m
              total        used        free      shared  buff/cache   available
Mem:           1838         549         832           0         456        1124
Swap:             0           0           0

 

标签:456,root,1124,free,命令,swap,liutao
来源: https://www.cnblogs.com/liutaolt/p/15243122.html