Your certificate (or certificates) for the names listed below will expire in 20 days (on 01 Oct 18 03:55 +0000). Please make sure to renew your certificate before then, or visitors to your website will encounter errors.
We recommend renewing certificates automatically when they have a third of their total lifetime left. For Let’s Encrypt’s current 90-day certificates, that means renewing 30 days before expiration. See
root@osakana:/etc/letsencrypt# /etc/init.d/nginx restart [….] Restarting nginx (via systemctl): nginx.serviceJob for nginx.service failed because the control process exited with error code. See “systemctl status nginx.service” and “journalctl -xe” for details. failed!
メッセージに従って、systemctlコマンドを叩く
おさかな
ポートが使用されているので、起動出来ていない?
root@osakana:/etc/letsencrypt# systemctl status nginx.service ● nginx.service – A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Tue 2018-09-11 13:44:22 JST; 12s ago Docs: man:nginx(8) Process: 14718 ExecStop=/sbin/start-stop-daemon –quiet –stop –retry QUIT/5 –pidfile /run/nginx.pid (code=exited, status=0 Process: 26430 ExecReload=/usr/sbin/nginx -g daemon on; master_process on; -s reload (code=exited, status=0/SUCCESS) Process: 24656 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=1/FAILURE) Process: 24645 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS) Main PID: 8645 (code=exited, status=0/SUCCESS)
Sep 11 13:44:21 osakana nginx[24656]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Sep 11 13:44:21 osakana nginx[24656]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use) Sep 11 13:44:21 osakana nginx[24656]: nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use) Sep 11 13:44:22 osakana nginx[24656]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Sep 11 13:44:22 osakana nginx[24656]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use) Sep 11 13:44:22 osakana nginx[24656]: nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use) Sep 11 13:44:22 osakana nginx[24656]: nginx: [emerg] still could not bind() Sep 11 13:44:22 osakana systemd[ 1 ]: nginx.service: Control process exited, code=exited status=1 Sep 11 13:44:22 osakana systemd[ 1 ]: nginx.service: Failed with result ‘exit-code’. Sep 11 13:44:22 osakana systemd[ 1 ]: Failed to start A high performance web server and a reverse proxy server. …skipping…
エラーの原因、WebサーバーNginxプロセスが停止しない?!
おさかな
停止コマンドを実行しても、停止してくれない・・・
root@osakana:/etc/letsencrypt# /etc/init.d/nginx stop [ ok ] Stopping nginx (via systemctl): nginx.service. root@osakana:/etc/letsencrypt# netstat -lntp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 14944/nginx: master tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 14944/nginx: master tcp6 0 0 :::80 :::* LISTEN 14944/nginx: master tcp6 0 0 :::xx80 :::* LISTEN 915/apache2 いろいろ・・・