「Let's Encrypt 」を更新するために
一度nginxを下記コマンドで止めたら
「systemctl stop nginx」
「systemctl start nginx」
と入力しても
起動できなくなりました。
どなたか起動させる方法をご教示いただけないでしょうか?
「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」
を入力したところ
「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 月 2019-08-26 17:33:06 JST; 43s ago
Process: 32602 ExecStop=/bin/kill -s QUIT $MAINPID (code=exited, status=0/SUCCESS)
Process: 15917 ExecStart=/usr/sbin/nginx (code=exited, status=0/SUCCESS)
Process: 1993 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=1/FAILURE)
Main PID: 15919 (code=exited, status=0/SUCCESS)
8月 26 17:33:06 hoge nginx[1993]: nginx: [emerg] "server" directive is not allowed here in /etc/nginx/conf.d...nf:117
8月 26 17:33:06 hoge nginx[1993]: nginx: configuration file /etc/nginx/nginx.conf test failed
8月 26 17:33:06 hoge systemd[1]: nginx.service: control process exited, code=exited status=1
8月 26 17:33:06 hoge systemd[1]: Failed to start The NGINX HTTP and reverse proxy server.
8月 26 17:33:06 hoge systemd[1]: Unit nginx.service entered failed state.
8月 26 17:33:06 hoge systemd[1]: nginx.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。