2016-09-16 1920 views
0

我無法打開http://localhost:3000無法打開http:// localhost:3000 - 爲什麼?

如果是相關的,這裏是rail s命令:

Jonass-MBP:first Money$ rails s 
=> Booting WEBrick 
=> Rails 4.2.6 application starting in development on http://localhost:3000 
=> Run `rails server -h` for more startup options 
=> Ctrl-C to shutdown server 
[2016-09-16 02:31:51] INFO WEBrick 1.3.1 
[2016-09-16 02:31:51] INFO ruby 2.3.1 (2016-04-26) [x86_64-darwin15] 
[2016-09-16 02:31:51] INFO WEBrick::HTTPServer#start: pid=8906 port=3000 
+0

你的瀏覽器說什麼?您是否在瀏覽器中嘗試過'rails s --port 3001'並激發了'http:// localhost:3001'? – araratan

回答

1

要使用3000端口運行kill -9 $(lsof -i tcp:3000 -t)殺死所有進程。

相關問題