【发布时间】:2016-06-26 20:41:04
【问题描述】:
在Cloud9rails s -p $PORT -b $IP启动服务器时出现错误,服务器启动失败。
Address already in use - bind(2)
关注这篇文章,Rails server says port already used, how to kill that process?,
我跑了lsof -wni tcp:8080(8080 因为 cloud9)
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
ruby 18415 ubuntu 9u IPv4 698526934 0t0 TCP *:http-alt (LISTEN)
那么,
kill -18415 PID
但这会导致错误,
bash: kill: 18415: invalid signal specification
谁能建议如何在 Cloud9 上修复此错误?
【问题讨论】:
标签: ruby-on-rails cloud9-ide webrick