您的位置:首页 > 运维架构 > 网站架构

老男孩教育每日一题第116天:网站访问高峰之后,如何回收已占用的swap分区?

2017-08-26 01:31 447 查看
如下所示:
[root@oldboy ~]# free -m
total       used       free     shared    buffers     ached
Mem:           981        834        146       0         7       181
-/+ buffers/cache:        646        335
Swap:         1023         51        972
答案:
[root@oldboy ~]# swapoff -a
[root@oldboy ~]# swapon -a
[root@oldboy ~]# free -m
total    used    free     shared  buffers   cached
Mem:        981     884     97       0   7     182
-/+ buffers/cache:              694     286
Swap:        1023     0      1023

备注

今天是每日一题陪伴大家的第116天期待你的进步。对于题目和答案的任何疑问,请在博客评论区留言
往期题目索引http://lidao.blog.51cto.com/3388056/1914205
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐