LoginSignup
0
0

More than 3 years have passed since last update.

EC2のデプロイに関わるエラーを確認するコマンド一覧

Posted at

この記事の使い方

EC2、RDS(MySQL)、Rails、nginx、pumaを使用してデプロイする際のお供に。

何を隠そうこれは筆者のためのメモでもあります。笑
Amazon linuxとAmazon linux2でコマンドが違っていたりして混乱するので。

使用するAMI

Amazon linux2

Nginx関連

$ sudo systemctl start nginx.service   #起動
$ sudo systemctl status nginx.service  #ステータス確認
$ tail -f log/nginx.error.log          #エラーログ確認
$ sudo nginx -t                        #設定ファイル内の間違いを教えてくれる

puma関連

$ bundle exec pumactl start            #起動

MySQL関連

$ sudo systemctl start mysqld.service  #起動
$ sudo systemctl status mysqld.service #ステータス確認

見てくださりありがとうございました。

この記事がデプロイの助けになれば幸いです。

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