服务器已经在Rails中运行 [英] Server is already running in Rails

查看:73
本文介绍了服务器已经在Rails中运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用 rails s 命令启动Rails服务器时,它显示服务器已经在运行。检查C:/Sites/folder/Pids/Server.pids

When I am starting rails server using rails s command it is showing A server is already running. Check C:/Sites/folder/Pids/Server.pids

当我打开文件时,它仅输出4位数字,因此我可以解决这个问题吗?

When I open the file it is outputting a 4 digit number only so how could I resolve this issue ?

仅供参考


  1. 没有其他Rails实例

  2. 已检查任务管理器,但只有 cmd.exe 显示没有其他进程正在运行。 (使用Windows)。

  1. No other instance of Rails cmd is running this time.
  2. Checked Task manager but only cmd.exe is showing no else process is running. (using Windows).


推荐答案

删除文件:C:/ Sites / folder / Pids /Server.pids

Remove the file: C:/Sites/folder/Pids/Server.pids

说明
在UNIX环境中,至少我们通常在服务器之类的文件中跟踪进程ID(pid) .pid。我认为这在这里做同样的事情。该文件可能是崩溃时遗留下来的。

Explanation In UNIX land at least we usually track the process id (pid) in a file like server.pid. I think this is doing the same thing here. That file was probably left over from a crash.

这篇关于服务器已经在Rails中运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆