An independent solution for any OS uses socket.io as follows. In that situation the only way to kill it is: killall node. For instance if a node someserver.js is running it may that any normal kill command (even kill -9 will simply result in a respawn node someserver.js process with a different PID.Masukan perintah berikut ini taskkill /f /im node.exe Linux 1. Buka cmd (tekan windows+r lalu tulis cmd) 2. Berikut ini adalah cara kill node js di server windows dan linux Windows 1. Nah, oleh karena itulah kita perlu stop secara paksa node proccess di port tersebut. That said, if this was me, I'd be using pm2 or something the automatically handled this on the basis of a git push.Īll the other solutions here are OS dependent. It may also prevent respawning node processes. Itu artinya node server tidak benar-benar berhasil distop. You can make this really simple if you set in app.js, Set one of the above in your package.json, and then use npm stop Prestop, stop, poststop: Run by the npm stop command.
0 Comments
Leave a Reply. |