如何在Windows中没有命令提示符的情况下运行nodejs? [英] How to run nodejs without command prompt in windows?

查看:29
本文介绍了如何在Windows中没有命令提示符的情况下运行nodejs?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在命令提示符下尝试了 nodejs.它工作正常.如何在 Windows 平台中尝试在没有命令提示符的情况下进行 nodejs 输出.

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.

推荐答案

我假设您希望将 Node.js 作为服务运行.您可以使用 nssm:http://nssm.cc/

I assume you want to run Node.js as a service. You can use 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

此处找到的解决方案(我不在 Windows 上使用节点 =)):http://blog.tatham.oddie.com.au/2011/03/16/node-js-on-windows/

Solution found here (I don't use node on windows =) ): http://blog.tatham.oddie.com.au/2011/03/16/node-js-on-windows/

这篇关于如何在Windows中没有命令提示符的情况下运行nodejs?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆