how to kill rails server code example
Example 1: rails kill server
kill -9 $(lsof -i tcp:3000 -t)
Example 2: kill rails
lsof -wni tcp:3000
kill -9 PID
Example 3: how to stop rails server
#from the terminal, type:
(CTRL) + C
kill -9 $(lsof -i tcp:3000 -t)
lsof -wni tcp:3000
kill -9 PID
#from the terminal, type:
(CTRL) + C