如何在后台启动 phantomjs?

How to launch phantomjs in background?

我正在尝试通过 cron 启动一些 phantomjs 的脚本,但是当它在第一个脚本中等待 phantom.exit(但我保持页面打开一段时间)时,下一个脚本将不会启动。谁知道这个问题的解决方法?

在 linux 中,您可以通过在命令末尾添加 & 来 运行 后台进程。