有些服务执行后,如果关闭控制台,服务也会跟着停止,此时可以使用nohup将服务置于后台执行nohup ./rest > /dev/null 2>&1 & 转载于:https://www.cnblogs.com/ai594ai/p/10491158.html