2013-05-11 73 views
4

每次當我運行2個軌不同的端口上的服務器說3000和3001服務器已在運行。檢查C:/Rails/tmp/pids/server.pid

端口啓動服務器後3000

Rails$ rails s -p 3000 
=> Booting Mongrel 
=> Rails 3.1.1 application starting in development on http://0.0.0.0:3000 
=> Call with -d to detach 
=> Ctrl-C to shutdown server 

當我在3001端口上運行的第二軌服務器,

Rails$ rails s -p 3001 
=> Booting Mongrel 
=> Rails 3.1.1 application starting in development on http://0.0.0.0:3001 
=> Call with -d to detach 
=> Ctrl-C to shutdown server 
A server is already running. Check /Rails/tmp/pids/server.pid. 
Exiting 

我需要刪除server.pid文件,我能夠在端口3001 啓動軌服務器之前,有沒有辦法避免這種刪除文件的每一次?

回答

相關問題