Skip to content

rails s 报错 “ A server is already running.“ 之解

cuckoo8695 edited this page Jul 29, 2016 · 1 revision

今天run: rails s 的时候报错如下:

=> Booting Puma

=> Rails 5.0.0 application starting in development on http://localhost:3000

=> Run rails server -h for more startup options A server is already running. Check /Users/jane/job-listing/tmp/pids/server.pid. Exiting

解法: First: 终端中输入 sudo lsof -iTCP -sTCP:LISTEN -P | grep :3000

Secend: 输入本机密码

Third: 终端中输入ruby后面的号码,如我是16705: kill -9 16705