Stop node.js program from command line

后端 未结 19 2208
无人及你
无人及你 2020-11-29 14:51

I have a simple TCP server that listens on a port.

var net = require(\"net\");

var server = net.createServer(function(socket) {
    socket.end(\"Hello!\\n\"         


        
相关标签:
19条回答
  • 2020-11-29 15:18

    you can type .exit to quit node js REPL

    0 讨论(0)
提交回复
热议问题