问题
Im sure this question has been asked before I am just having a really hard time finding it... Currently when I go to start my rails server, I am running into
`initialize': Address already in use - bind(2) for "0.0.0.0" port 5000 (Errno::EADDRINUSE)
obviously port:5000 is currently being used but is there is quick way to list all local web servers and to also kill said servers. Please excuse my ignorance.
回答1:
ps aux | grep ruby
or
ps aux | grep rails
find the server then
kill -9 pid
来源:https://stackoverflow.com/questions/35189411/is-there-a-command-to-list-all-the-servers-currently-being-run-locally