Nginx - 98: адрес уже используется, не удалось подключиться к портам 433 и 80 - PullRequest
0 голосов
/ 27 января 2020

Понятия не имею, что делать, я убил все, используя порты 443 и 80, обновил все свои SSL-сертификаты. в первый раз, когда я писал в StackOverflow и очень нервничал

То, что я пробовал / следил: Ссылка 1 , Ссылка 2 , Ссылка 3

server@engtoast:/etc/nginx/sites-available$ sudo netstat -tulpn | grep --color :443
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      5191/nginx: master
tcp6       0      0 :::443                  :::*                    LISTEN      5191/nginx: master
server@engtoast:/etc/nginx/sites-available$ sudo netstat -tulpn | grep --color :80
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      5191/nginx: master
tcp6       0      0 :::80                   :::*                    LISTEN      5191/nginx: master
server@engtoast:/etc/nginx/sites-available$ sudo nginx
nginx: [emerg] bind() to [::]:443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()
server@engtoast:/etc/nginx/sites-available$  

server@engtoast:/etc/nginx/sites-available$ sudo netstat -ltnp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      1218/systemd-resolv
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      2345/sshd
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      5730/cupsd
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      6853/nginx: master
tcp        0      0 0.0.0.0:445             0.0.0.0:*               LISTEN      2445/smbd
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      2291/mysqld
tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN      2445/smbd
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      6853/nginx: master
tcp6       0      0 :::22                   :::*                    LISTEN      2345/sshd
tcp6       0      0 ::1:3350                :::*                    LISTEN      2024/xrdp-sesman
tcp6       0      0 ::1:631                 :::*                    LISTEN      5730/cupsd
tcp6       0      0 :::443                  :::*                    LISTEN      6853/nginx: master
tcp6       0      0 :::3389                 :::*                    LISTEN      2456/xrdp
tcp6       0      0 :::445                  :::*                    LISTEN      2445/smbd
tcp6       0      0 :::139                  :::*                    LISTEN      2445/smbd
tcp6       0      0 :::80                   :::*                    LISTEN      6853/nginx: master
...