【问题标题】:auto start node.js server on boot in Windows 8在 Windows 8 中启动时自动启动 node.js 服务器
【发布时间】:2014-02-10 16:31:48
【问题描述】:

在 Windows 中运行 node.js 服务器。我需要服务器在启动时自动启动,然后启动一个独立的应用程序。谁能告诉我完成此任务的最佳方法?

【问题讨论】:

标签: node.js windows


【解决方案1】:

你会想要run node as a Windows Service。服务在启动后、登录之前立即启动。

就启动独立应用而言,答案取决于它是什么。如果它是一个 GUI 应用程序,您需要将 Windows 配置为automatically log in,然后您可以将它放在 Startup 文件夹中。如果它没有 GUI,您可以使用 child_process 从节点生成应用程序。

【讨论】:

    猜你喜欢
    • 2013-12-25
    • 1970-01-01
    • 1970-01-01
    • 2020-11-10
    • 1970-01-01
    • 2016-04-28
    • 2019-08-23
    • 2015-08-18
    • 2020-11-28
    相关资源
    最近更新 更多