Bokeh 运行 服务作为守护进程

Bokeh run service as daemon

要部署散景应用程序,我有一台服务器 运行

bokeh serve --allow-websocket-origin=myurl:5006 BokehMain.py

但是,我想 运行 bokeh 作为守护进程,这样我就可以关闭终端并让应用程序 运行 作为后台服务。

问题 如果我希望用户通过网络浏览器而不是 SSH 隧道连接,是否有必要为 bokeh 设置一个 apache 服务器。 (如this link中所述)

感谢您的帮助!

nohup bokeh serve --allow-websocket-origin=myurl:5006 BokehMain.py

nohup,“no hang up”的缩写,是 Linux 系统中的一个命令,即使在退出后仍保持进程 运行ning shell 或终端。

因此,即使在您关闭终端后,nohup 命令仍会在后台继续 运行 散景服务器。