ЯoomeR

プログラミング~実装とエラー解決と、時々、AI~

Nginxの起動でエラーが発生する

Job for nginx.service invalid.

こちらは無視しても問題ない。

気になる場合はHerokuやEC2からログアウトし、再ログインしよう。

(設定ファイルが再読み込みされるため。)

Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.

以下のどちらかのコマンドを実行しよう

systemctl status nginx.service
journalctl -xe

なぜnginxの起動に失敗したかのログが出力される。

rails.confのsyntaxエラーが原因の場合が多い。