当Mac显示屏closures或Mac被locking时是否可以运行NodeJS服务器?

我在我的Mac上运行一个Node JS服务器。 我想lockingMac和/或把它放到睡眠状态,但保持Node进程运行。 那可能吗? 我怎么做?

谢谢。