[vpsFree.cz: community-list] nginx padá
petr.bolf at taborpolana.cz
petr.bolf at taborpolana.cz
Tue Oct 13 14:57:49 CEST 2020
zdravím,
nevěděl by někdo s čím může být problém - asi někde v konfiguraci
serverů pro nginx.
sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
sudo systemctl start nginx.service
sudo 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: en
Active: active (running) since Tue 2020-10-13 14:49:08 CEST; 6min ago
Docs: man:nginx(8)
Process: 16277 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on;
master_process
Process: 16278 ExecStart=/usr/sbin/nginx -g daemon on; master_process
on; (cod
Main PID: 16279 (nginx)
Memory: 21.0M
CGroup: /system.slice/nginx.service
├─16279 nginx: master process /usr/sbin/nginx -g daemon on;
master_pr
├─16280 nginx: worker process
├─16281 nginx: worker process
├─16282 nginx: worker process
├─16283 nginx: worker process
├─16284 nginx: worker process
├─16285 nginx: worker process
├─16286 nginx: worker process
└─16287 nginx: worker process
jenže po nějakém čase server spadne.
sudo tail -f /var/log/nginx/error.log
2020/10/13 02:39:01 [emerg] 7506#7506: bind() to [::]:443 failed (98:
Address already in use)
2020/10/13 02:39:01 [emerg] 7506#7506: bind() to 0.0.0.0:443 failed (98:
Address already in use)
2020/10/13 02:39:01 [emerg] 7506#7506: bind() to 0.0.0.0:80 failed (98:
Address already in use)
2020/10/13 02:39:01 [emerg] 7506#7506: bind() to [::]:80 failed (98:
Address already in use)
2020/10/13 02:39:01 [emerg] 7506#7506: bind() to [::]:443 failed (98:
Address already in use)
2020/10/13 02:39:01 [emerg] 7506#7506: bind() to 0.0.0.0:443 failed (98:
Address already in use)
2020/10/13 02:39:01 [emerg] 7506#7506: bind() to 0.0.0.0:80 failed (98:
Address already in use)
2020/10/13 02:39:01 [emerg] 7506#7506: bind() to [::]:80 failed (98:
Address already in use)
2020/10/13 02:39:01 [emerg] 7506#7506: still could not bind()
2020/10/13 02:39:04 [alert] 7357#7357: unlink() "/run/nginx.pid" failed
(2: No such file or directory)
a když je spadlý tak
sudo systemctl status nginx.service
[sudo] password for pruga:
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor
preset: en
Active: failed (Result: exit-code) since Tue 2020-10-13 02:39:04
CEST; 11h ag
Docs: man:nginx(8)
Process: 7501 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on;
master_process
Process: 7506 ExecStart=/usr/sbin/nginx -g daemon on; master_process
on; (code
Oct 13 02:39:03 domogled nginx[7506]: nginx: [emerg] bind() to
0.0.0.0:80 failed
Oct 13 02:39:03 domogled nginx[7506]: nginx: [emerg] bind() to [::]:80
failed (9
Oct 13 02:39:03 domogled nginx[7506]: nginx: [emerg] bind() to [::]:443
failed (
Oct 13 02:39:03 domogled nginx[7506]: nginx: [emerg] bind() to
0.0.0.0:443 faile
Oct 13 02:39:03 domogled nginx[7506]: nginx: [emerg] bind() to
0.0.0.0:80 failed
Oct 13 02:39:03 domogled nginx[7506]: nginx: [emerg] bind() to [::]:80
failed (9
Oct 13 02:39:04 domogled nginx[7506]: nginx: [emerg] still could not bind()
Oct 13 02:39:04 domogled systemd[1]: nginx.service: Control process
exited, code
Oct 13 02:39:04 domogled systemd[1]: nginx.service: Failed with result
'exit-cod
Oct 13 02:39:04 domogled systemd[1]: Failed to start A high performance
web serv
přičemž
sudo systemctl start nginx.service
ho zase nastartuje a zase chvilu běží.
díky
Petr Bolf
More information about the Community-list
mailing list