Skip to content
Sign UpLog In
Profile icon

G Krisz

@cptneko
  • chat-server

    Cover page
    Made with Node.js
    Recent comments (0)
Repls
Community
cptneko
cptneko
shared a Post
3 years ago
How can I stop nodejs?
Hello. I have started an express+socketio server with the standard: var app = express(); var server = http.Server(app); server.listen(3000, () => cons
chat-server
Node.js
chicagokiwi
chicagokiwi
Press F1 in the Editor then type and/or select Open Shell. Within the shell, execute the following: find /proc -mindepth 2 -maxdepth 2 -name exe -exec ls -lh {} \; 2>/dev/null You can then: kill -9 [pid]3 years ago
vedprad1
vedprad1
After you change the port number, you just have to wait for a while, and then you can go back to the original port. However, I would recommend that you do not even press the start / restart button unless you are making a change to the server. If you are just changing an express route, a socket.io connection, or you change client side, you don't have to restart server. Instead, you should just make a new client, and it should be updated.3 years ago
rshetty
rshetty
If changing the port isn’t working, press ctrl-shift-P to open the little repl menu, then select open shell. You now get access to the Linux file system and command line. You will then be able to use any non-superuser method to stop the server.3 years ago