如何在 Windows 中没有命令提示符的情况下运行 nodejs?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8504680/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to run nodejs without command prompt in windows?
提问by Sivanath
I have tried the nodejs with command prompt. And it is working fine. How can i try to nodejs output without command prompt in windows platform.
我已经在命令提示符下尝试了 nodejs。它工作正常。如何在 Windows 平台中尝试在没有命令提示符的情况下进行 nodejs 输出。
回答by shawnjan
I assume you want to run Node.js as a service. You can use nssm: http://nssm.cc/
我假设您想将 Node.js 作为服务运行。您可以使用 nssm:http://nssm.cc/
nssm.exe install sydjs-node c:\where-i-put-node-standalone\node.exe c:\code\SydJS\server.js
net start sydjs-node
Solution found here (I don't use node on windows =) ): http://blog.tatham.oddie.com.au/2011/03/16/node-js-on-windows/
在这里找到的解决方案(我不在 Windows 上使用节点 =)):http: //blog.tatham.oddie.com.au/2011/03/16/node-js-on-windows/