1、启用混合休眠模式 sudo -spmset -a hibernatemode 0rm /private/var/vm/sleepimage
2、关闭Mac系统休眠 如果需要关闭Mac系统休眠:sudo -spmset -a sleep 0