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
Whe
Just open that C:/Sites/folder/Pids/Server.pids and copy that 4 digit value.that 4 digit value is nothing but a PID, which you need to kill to stop the already running process.
then to stop the process use below command
kill -9 <pid>
once that already running process get stopped then hit
rails s
to start the rails server
Remove the file: C:/Sites/folder/Pids/Server.pids
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.
It happens when you kill your server process and the pid file was not updated. The best solution is to delete the file Server.pid.
Use the command
rm <path to file Server.pid>