Linux Shell Scripting _ less use Swap

① write the script

echo "0" > /proc/sys/vm/swappiness

② run the script

chmod u+x AutoSyncTime.sh
./AutoSyncTime.sh
或者
bash AutoSyncTime.sh

Note: The name of the custom script

③ script Description of content

编辑/proc/sys/vm/swappiness文件修改值
Published 976 original articles · won praise 151 · Views 250,000 +

Guess you like

Origin blog.csdn.net/weixin_40816738/article/details/104274592