Is there a command to list all the servers currently being run locally?

泪湿孤枕 提交于 2021-02-10 19:39:30

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!