Categories
Linux Ubuntu 🏴‍☠️

How to kill a nodejs process in Linux?

sudo netstat -lpn |grep :'3000'

3000 is port i was looking for, After first command you will have Process ID for that port

kill -9 1192

in my case 1192 was process Id of process running on 3000 PORT use -9 for Force kill the process

pkill is the easiest command line utility

pkill -f node

or

pkill -f nodejs

whatever name the process runs as for your os

Categories
Ubuntu 🏴‍☠️

วิธี Setup proxy ให้ nvm บน linux (WSL)

NVM uses curl, so modifying the file ~/.curlrc file (or create it if it does not exist)

proxy = <proxy_host>:<proxy_port>

จากนั้นก็ปิดเครื่องแล้วเปิดใหม่

credit

https://stackoverflow.com/questions/42244572/nvm-proxy-settings-configuration-file