是否有命令列出当前 运行 本地的所有服务器?

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

我确定这个问题在我很难找到它之前已经被问过...目前当我开始我的 rails 服务器时,我 运行 进入

`initialize': Address already in use - bind(2) for "0.0.0.0" port 5000 (Errno::EADDRINUSE)

显然 port:5000 当前正在使用,但是否有快速的方法列出所有本地 Web 服务器并杀死所述服务器。请原谅我的无知

ps aux | grep ruby

ps aux | grep rails

找到服务器 然后

kill -9 pid