解决rails s终端报错:A server is already running.

Published on:

今天开始练习rails101第六遍。

上午在启动 server 模式的时候,终端报错了:A server is already running. Check /Users/Yammy/RoRproject/rails106/tmp/pids/server.pid.

Google之后,很快找到了答案:

解决方法就是在终端执行命令:kill -9 $(lsof -i tcp:3000 -t)

如果不行,可以在上面这条命令之前先执行删除命令:rm tmp/pids/server.pid

Comments

comments powered by Disqus