2014-02-11 114 views
0

有人可以告訴我爲什麼我有這個錯誤..?!當我運行命令rails s時,我一直試圖在幾個端口上運行它,但仍然無法運行!WebBrick導軌服務器錯誤

enter image description here

Booting WEBrick 
=> Rails 4.0.1 application starting in development on http://0.0.0.0:3000 
=> Run `rails server -h` for more startup options 
=> Ctrl-C to shutdown server 
[2014-02-11 11:32:26] INFO WEBrick 1.3.1 
[2014-02-11 11:32:26] INFO ruby 1.9.3 (2013-11-22) [i386-mingw32] 
[2014-02-11 11:32:26] WARN TCPServer Error: Only one usage of each socket address (protocol/network address/port) is normally permitted. - bind(2) 
Exiting 
C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/webrick/utils.rb:85:in `initialize': Only one usage of each socket address (protocol/network address/port) is normally permitted. - bind(2) 
(Errno::EADDRINUSE) 

回答

2

以前的服務器沒有被正確地終止,因此您可以運行不同的端口上的服務器(或殺死以前的軌道理線)如你所願:

bundle exec rails s -p 3001 
0

試圖找到和殺死鐵軌使用的過程

lsof -wni tcp:3000 
kill -9 PID 
+0

我在窗戶上,我想我不能完成專業版因爲是一個系統進程(NT Kernel&System)@Phabhakaran –