ターミナルでドメインを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.
どこを修正すればいいのかわかる方助けていただけないでしょうか、、
宜しくお願いします。
エラー読んでます?
すみません。よくエラーを呼んでいませんでした。}が抜けていました。。
あなたの回答
tips
プレビュー