2017-07-24 76 views
1

我正在開發一個Rails應用程序使用Puma作爲我的本地機器上的服務器。美洲獅似乎並沒有開放端口它說它是

當我開始在本地服務器,日誌清楚地表明,彪馬在localhost:3011打開連接:

=> Booting Puma 
=> Rails 5.0.4 application starting in development on http://localhost:3011 
=> Run `rails server -h` for more startup options 
Puma starting in single mode... 
* Version 3.9.1 (ruby 2.3.4-p301), codename: Private Caller 
* Min threads: 5, max threads: 5 
* Environment: development 
* Listening on tcp://0.0.0.0:3000 
Use Ctrl-C to stop 

但是當我運行netstat看到開放的端口,端口3011似乎並沒有被激活:

[email protected]:~/Programming$ netstat -an | grep "3011" 
(there is no output) 
[email protected]:~/Programming$ 

我該如何解決爲什麼我的本地服務器沒有打開它說的端口?

+0

實驗一些,我發現服務器正在監聽端口3000.爲什麼它這樣做,我該如何讓它監聽端口3011? – Kevin

回答

相關問題