所以我跑我的本地用一個簡單的我不能運行本地主機
rails s
,並罰款開始:
=> Booting WEBrick
=> Rails 4.1.8 application starting in development on http://0.0.0.0:3000
=> Run 'rails server -h' for more start up options
=> Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0.0.1 (--binding option)
=> Ctrl-C to shutdown server
然後此消息出現了:
A server is already running. Check C:/User/yahshef/sites/game/tmp/pids/server.pids.
Exiting
然後我檢查了'C:/User/yahshef/sites/game/tmp/pids/server.pids',裏面是:
9552
我刪除了9552,但是當我運行它時,它開始像細較早之一:
=> Booting WEBrick
=> Rails 4.1.8 application starting in development on http://0.0.0.0:3000
=> Run 'rails server -h' for more start up options
=> Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0.0.1 (--binding option)
=> Ctrl-C to shutdown server
那麼這個人有一個很大的變化,但它仍然是一個錯誤:(,它顯示這個:
Exiting
C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rack-1.5.3/lib/rack/server.rb:353:in `kill': Invalid argument (Errno::EINVAL)
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rack-1.5.3/lib/rack/server.rb:353:in `pidfile_process_status'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rack-1.5.3/lib/rack/server.rb:340:in `check_pid!'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rack-1.5.3/lib/rack/server.rb:246:in `start'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/ralities-4.1.8/lib/rails/commands/server.rb:69:in `server'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/ralities-4.1.8/lib/rails/commands/commands_tasks.rb:81:in `block in server'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/ralities-4.1.8/lib/rails/commands/commands_tasks.rb:76:in `tap'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/ralities-4.1.8/lib/rails/commands/commands_tasks.rb:76:in `server'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/ralities-4.1.8/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/ralities-4.1.8/lib/rails/commands.rb:17:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
有人知道如何解決這個問題嗎?我很感激。
編輯:
請注意,我做研究之前我張貼了這個問題
你有沒有做過任何研究來嘗試解決這個問題?我在'rails'kill'上搜索了谷歌:無效的參數(Errno :: EINVAL)',第一對結果有合理的結果。 –
@BryanOakley在我發佈問題之前,我做了一個谷歌研究,但沒有人回答 –
_saying_您確實研究過,並且_showing_您確實研究過兩種不同的東西。告訴我們你試圖解決這個問題。如果你期待免費的幫助,你也必須願意付出一點努力。雖然看起來你在浪費時間,但它有助於防止浪費我們的時間提供你已經嘗試過的建議,這些建議無效。我們應該如何知道你所嘗試過的以及你所研究的內容? –