冲击年薪50W,助你进阶Python工程师>>> 1、fallocate创建一个文件 fallocate -l 4G /swapfile 可用于创建交换文件,查看linux下swap信息,可用cat /proc/swaps