how to stop a node server from running 1

how to stop a node server from running

ps aux | grep node

kill -9 PROCESS_ID

Here is what the above code is Doing:
1. We’re importing the Flask class from the flask module.
2. We’re creating a new “app” which will be a new instance of the Flask class.
3. We’re defining a function, “hello_world”, which will be our view.
4. We’re telling Flask that if someone goes to the root URL (“/”) of our application,
call the “hello_world” function and return the result.
5. We’re telling Flask to run our application, and to run it on port 5000.

Similar Posts