質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Ruby on Rails 5

Ruby on Rails 5は、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

nginx

nginixは軽量で高性能なwebサーバーの1つです。BSD-likeライセンスのもとリリースされており、あわせてHTTPサーバ、リバースプロキシ、メールプロキシの機能も備えています。MacOSX、Windows、Linux、上で動作します。

Q&A

0回答

746閲覧

nginx 起動できない

退会済みユーザー

退会済みユーザー

総合スコア0

Ruby on Rails 5

Ruby on Rails 5は、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

nginx

nginixは軽量で高性能なwebサーバーの1つです。BSD-likeライセンスのもとリリースされており、あわせてHTTPサーバ、リバースプロキシ、メールプロキシの機能も備えています。MacOSX、Windows、Linux、上で動作します。

0グッド

0クリップ

投稿2020/11/09 11:03

ターミナルでドメインをAWSと紐づけようとしているのですがnginxが起動できなくて困っています。

sudo nginx -t nginx: [emerg] unexpected end of file, expecting "}" in /etc/nginx/conf.d/musicapp.conf:5 nginx: configuration file /etc/nginx/nginx.conf test failed
[ec2-user@ip-10-0-0-40 music_app]$ systemctl status nginx.service ● nginx.service - The nginx HTTP and reverse proxy server Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Mon 2020-11-09 11:01:57 UTC; 5s ago Process: 13488 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=1/FAILURE) Process: 13487 ExecStartPre=/usr/bin/rm -f /run/nginx.pid (code=exited, status=0/SUCCESS) Main PID: 4392 (code=exited, status=0/SUCCESS) Nov 09 11:01:57 ip-10-0-0-49.ap-northeast-1.compute.internal systemd[1]: Starting The nginx HTTP and reverse proxy server... Nov 09 11:01:57 ip-10-0-0-49.ap-northeast-1.compute.internal nginx[13488]: nginx: [emerg] unexpected end of file, expecting "}" in /etc/nginx/conf.d...conf:5 Nov 09 11:01:57 ip-10-0-0-49.ap-northeast-1.compute.internal nginx[13488]: nginx: configuration file /etc/nginx/nginx.conf test failed Nov 09 11:01:57 ip-10-0-0-49.ap-northeast-1.compute.internal systemd[1]: nginx.service: control process exited, code=exited status=1 Nov 09 11:01:57 ip-10-0-0-49.ap-northeast-1.compute.internal systemd[1]: Failed to start The nginx HTTP and reverse proxy server. Nov 09 11:01:57 ip-10-0-0-49.ap-northeast-1.compute.internal systemd[1]: Unit nginx.service entered failed state. Nov 09 11:01:57 ip-10-0-0-49.ap-northeast-1.compute.internal systemd[1]: nginx.service failed. Hint: Some lines were ellipsized, use -l to show in full.

どこを修正すればいいのかわかる方助けていただけないでしょうか、、
宜しくお願いします。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

scsi

2020/11/09 11:25

エラー読んでます?
退会済みユーザー

退会済みユーザー

2020/11/10 10:09

すみません。よくエラーを呼んでいませんでした。}が抜けていました。。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問