Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to stop a node server from running

ps aux | grep node

kill -9 PROCESS_ID
Comment

node how to stop NodeJS server process

const http = require("http");

const server = http.createServer(function (req, res) {
  const url = req.url;

  if (url === "/") {
    // do a 200 response
    res.writeHead(200, { "Content-Type": "text/html" });
    res.write("<h1>Hello World!<h1>");
    res.end();
  }
});

server.listen(3000, function () {
  console.log("server started at port 3000");
});
Comment

PREVIOUS NEXT
Code Example
Shell :: change sshd config 
Shell :: apache is not starting in xampp ubuntu 20 
Shell :: loop through directories bash 
Shell :: wget ignore if exists 
Shell :: modify an existing singularity container 
Shell :: apt sources.list amd64 only 
Shell :: github resolve issue large file 
Shell :: bash get length of every nth row 
Shell :: sqlite3 attempt to write a readonly database 
Shell :: github push master 
Shell :: how to extract key and cert from pfx 
Shell :: git clone iin colab using the private repo 
Shell :: first of file linux terminal 
Shell :: how to install apache server in ubuntu 
Shell :: how to create a junction between folders 
Shell :: print parte da tela ubuntu 
Shell :: why gitignore not working 
Shell :: install requirements python 
Shell :: bash adding to array 
Shell :: how to clone github repository in my google colab 
Shell :: bash convert symlinks to actual files 
Shell :: ubuntu 20.04 install google cloud sdk 
Shell :: libxml2 install 
Shell :: tar file 
Shell :: fetch all branches 
Shell :: centos install wget 
Shell :: remove git tag 
Shell :: git pull origin master 
Shell :: error: ‘thread’ is not a member of std 
Shell :: fc editor 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =