Java知识分享网 - 轻松学习从此开始!    

Java知识分享网

Java1234官方群25:java1234官方群17
Java1234官方群25:838462530
        
SpringBoot+SpringSecurity+Vue+ElementPlus权限系统实战课程 震撼发布        

最新Java全栈就业实战课程(免费)

springcloud分布式电商秒杀实战课程

IDEA永久激活

66套java实战课程无套路领取

锋哥开始收Java学员啦!

Python学习路线图

锋哥开始收Java学员啦!

Node Cookbook, Second Edition PDF 下载


分享到:
时间:2023-09-05 11:08来源:http://www.java1234.com 作者:转载  侵权举报
Node Cookbook, Second Edition
失效链接处理
Node Cookbook, Second Edition PDF 下载



 
 
相关截图:
 
主要内容:


general practice to call the server.js file (because the npm start command runs the node
server.js command by default). We could put this new server.js file in a new folder.
It's also a good idea to install and use supervisor. We use npm (the module downloading
and publishing command-line application that ships with Node) to install. On the command-line
utility, we write the following command:
sudo npm -g install supervisor
Essentially, sudo allows administrative privileges for Linux and Mac OS X
systems. If we are using Node on Windows, we can drop the sudo part in
any of our commands.
The supervisor module will conveniently autorestart our server when we save our changes.
To kick things off, we can start our server.js file with the supervisor module by
executing the following command:
supervisor server.js
For more on possible arguments and the configuration of supervisor,
check out https://github.com/isaacs/node-supervisor.


 

------分隔线----------------------------

锋哥公众号


锋哥微信


关注公众号
【Java资料站】
回复 666
获取 
66套java
从菜鸡到大神
项目实战课程

锋哥推荐