score:0
if you are on windows you can try to kill the processes running on those ports, first get process pid with
netstat -ano | find "8080"
then you kill it with
taskkill /f /pid [insert the pid here]
on mac or linux they are similar command
score:0
just kill the process by press ctrl-c key in terminal turn off node.js server once running on localhost
or node's naive solution
server.close(function() {
console.log('we closed!');
process.exit();
});
http://dillonbuchanan.com/programming/gracefully-shutting-down-a-nodejs-http-server/
Source: stackoverflow.com
Related Query
- How to delete an existing http server?
- How to NOT delete existing translations with "react-intl-translations-manager"?
- How to implement React HTTP delete requests without an ID?
- How to delete data from server and UI using React and Node?
- How to send files from client to http node server
- How to delete file from the server after auto upload
- How to Delete a row in a table using ReactJS, while capturing the ID of the deleted object and send it to server
- How to post new object to the existing json (clientside ReactJS + server side NodeJS and Express)
- How to delete an item from state array?
- How to make the webpack dev server run on port 80 and on 0.0.0.0 to make it publicly accessible?
- How to tell webpack dev server to serve index.html for any route
- How to deploy a React App on Apache web server
- How to delete .eslintcache file in react?
- How do I create configuration for axios for default request headers in every http call?
- How to setup apache server for React route?
- React.js, how to send a multipart/form-data to server
- How to inject API server URL when deploying react frontend?
- How to configure webpack dev server with react router dom v4?
- How to add jsconfig.json to existing vscode project w/o breaking it
- How can I add live-reload to my nodejs server
- React tutorial - how do I start the node server for a reactJs application?
- How do I save a file getting downloaded from server using react?
- How do I make an HTTP request in react-redux?
- ReactJS how to delete item from list
- How do I properly setup VS Code to debug in chrome, using an existing logged in Chrome user profile?
- How to render asynchronously initialized components on the server
- How to fetch data only once in a Next.js app and make it accesible to all the app, both in server and client
- How to render images with react on server side?
- How to fetch data in HOC from server in Next.js?
- How to delete a ToDo Item onClick in React?
More Query from same tag
- How to get the date/time in the original timezone
- React: dynamic import jsx
- React JS installation stuck
- make animation for button appear and dissapear with scale
- How to avoid complex hierarchies in reactjs index
- Updating the product image based on thumbnail img using react hooks
- React, Express - GET data from database return array of objects, but I cant access to any object in array
- How do I remove and add Array elements within an Object used for State?
- React checkbox state management with react-bootstrap or material-ui?
- How to I wrap a useState variable in a if statment, but still have it's value be available outside the if reactjs
- In array map iterator, how to get value concatenate state and array map id
- this.props 'missing' method using conect from react-redux
- React Switch Route without reload all page
- React.js: How to delete row from an ag grid?
- Console.log data entered in a form with React js
- flickity react asNavFor for two navs not working
- Jest SyntaxError: Unexpected token <
- What's the difference between class and className with respect to css inheritance?
- SyntaxError: Expected corresponding JSX closing tag for <Route> with react-router-dom v6
- Apply dynamic css property to a div using the styled props
- Sort the day names elements in order for mapped values
- How get a date (value) from a DatePicker and assign it to property an object?
- How to make fetch in this React class?
- How to avoid extra wrapping <div> in React?
- Datetime column in React Table
- How can I insert a reduxForm component without starting too many calls
- Can I put information from an API to another page?
- express react redux returning data as array from a promise
- params return null in axios post method
- Unexpected token, expected "}" Error while passing object from FetchMovie to MovieList component at line 7 of MovieList.js