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 启动轨服务器之前,有没有办法避免这种删除文件的每一次?
“-P TMP /的PID/server_2.pid” 只需要相同的应用程序,否则没有必要 – olucube 2018-02-20 22:07:41