T086ѧϰ�� | վ��ѧԺ | �����ĵ� | ���� | Ъ���� | IP��ַ��ѯ | �������� | ���ջ��� | �����ֵ� | ���ù��� | ������Ϣ��ѯ

Linux���swapoff �ر�swap

�� ����ʱ�䣺2013-12-19 | ���壺�� �� С��
[����]swapoff :�ر�ϵͳ���������� ��swapoff[��Ҫ����][ѡ������]�� ��swapoff ������Թرս���������swapon�������Դ򿪽�����������������: swapon ִ��Ȩ��: �����û� ��ͨ�û���������: ϵͳ���� ������Ҫ����-a ...

swapoff :�ر�ϵͳ��������

�� ��

swapoff[��Ҫ����][ѡ������]
�� ��
swapoff ������Թرս���������swapon �������Դ򿪽���������

ִ��Ȩ��: �����û� ��ͨ�û�

��������: ϵͳ����
 

����
��Ҫ����
-a �ر����н����豸

ѡ������
-h ������Ϣ
-V �汾��Ϣ

����


����1�� ��ʾ������Ϣ��

[root@hx ~]# sfdisk -l //��ʾ������Ϣ

Disk /dev/sda: 1305 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

  Device Boot Start   End  #cyls  #blocks  Id System
/dev/sda1  *   0+   12   13-  104391  83 Linux
/dev/sda2     13  1304  1292  10377990  8e Linux LVM
/dev/sda3     0    -    0     0  0 Empty
/dev/sda4     0    -    0     0  0 Empty

Disk /dev/sdb: 652 cylinders, 255 heads, 63 sectors/track

sfdisk: ERROR: sector 0 does not have an msdos signature
/dev/sdb: unrecognized partition
No partitions found
[root@hnlinux ~]#


����2�� �رս���������

[root@hx ~]# swapoff /dev/sda2 // �رս�������

  • ת����ע����Դ��ITѧϰ�� ��ַ��http://www.t086.com/ �����������Ƽ�������
  • �ر������� ��վ�������ر�������ֹת�ص�ר�������������¿�������ת�أ���������ע��������ԭʼ���ߡ����°�Ȩ������ԭʼ�������С����ڱ���վת�����µĸ��˺���վ�����DZ�ʾ������л�⡣������վת�ص������а�Ȩ��������ϵ���ǣ����ǻᾡ�����Ը�����
������ѯ Health Check Gulangyu
© 2017 T086ѧϰ�� - T086.com(ԭitlearner.com)
RunTime:23.48ms QueryTime:7