Since the release of OS X 10.8, there has been a small problem that the system will automatically enter sleep state and disconnect the Wi-Fi network when it is not used for a long time. this will cause the download data to be suspended. it is inconvenient.
After searching, you can enter the following command in the terminal to pause the sleep.
The new version supports a standby mode, which is invisible on the GUI and has no sleep settings. Therefore, you need to use commands.
Sudo pmset-a standby 0 sleep 20 hibernatemode 3 networkoversleep 0 force
To restore the data, you only need to enter
Sudo pmset-a standby 1 sleep 20 hibernatemode 3 networkoversleep 0 force
This setting may cause power consumption if the power supply is not connected. Please use it as appropriate ..
Address: http://blog.sina.com.cn/s/blog_71715bf80101ebhk.html