When you do rails s
Address already in use - bind(2) for "127.0.0.1" port 3000 (Errno::EADDRINUSE)
Is displayed in the terminal and rails s cannot be executed
If you can't see rails s running
% ps ax | grep rails
The process number that came out
% kill -9 process number
It can be solved by stopping the process with.