如何让“代码隧道”在后台运行?

Mic*_*ael 2 terminal visual-studio-code vscode-remote

有人知道code tunnel我关闭终端后如何继续运行吗?

我通常通过 SSH 登录到我的终端,但希望保持隧道完好无损,以便每当我通过 VPN 连接到内部网络时,我都可以轻松地在浏览器中访问 VSCode。有小费吗?Disown 对我不起作用,启动 tmux 容器并code tunnel在里面运行也不起作用。

为了澄清起见,我使用fishshell。首先,我使用 启动隧道code tunnel > ct_out 2> tc_err &,然后使用ps -u查找进程的 PID,而我使用 拒绝承认该进程disown PID

小智 9

尝试code tunnel service install安装为服务。请参阅code tunnel service --help参考资料 了解更多信息。