Linux:如何将交换重新分配到内存中
时间:2020-02-23 14:39:44 来源:igfitidea点击:
如果要将交换区的内容重新分配回内存,请使用以下脚本。
在执行此操作之前,请确保您有足够的可用内存。
#!/bin/bash echo -e "\nOutput of free before:" free swapoff -a ; swapon -a echo -e "\nOutput of free after:" free echo ""
如果要将交换区的内容重新分配回内存,请使用以下脚本。
在执行此操作之前,请确保您有足够的可用内存。
#!/bin/bash echo -e "\nOutput of free before:" free swapoff -a ; swapon -a echo -e "\nOutput of free after:" free echo ""