LoginSignup
0
0

More than 3 years have passed since last update.

Cloud9上でRails sをしてA server is already runningが出た時の対処法

Posted at

現象 Cloud9上でRails sをしたらA server is already runningが出る

コード

ec2-user:~/environment/sample_app $ rails s
=> Booting Puma
=> Rails 5.1.6 application starting in development
=> Run rails server -h for more startup options
A server is already running. Check /home/ec2-user/environment/sample_app/tmp/pids/server.pid.

1.指示通りpidを見に行く

Check /home/ec2-user/environment/sample_app/tmp/pids/server.pid.

これをクリックしてハイパーリンク先の数字を確認し、コピー

2.当該idのプロセスをkill

kill -9 確認した数字(pid)を実行

3.サーバー再起動

もう一度
rails s

以上です。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0