niginx 问题:nginx[14701]: nginx: [emerg] bind() 至 [::]:80 失败 (98: 地址已在使用中)

niginx 问题:nginx[14701]: nginx: [emerg] bind() 至 [::]:80 失败 (98: 地址已在使用中)

我正在尝试安装 ph8。我之前在 nginx 下运行的是 php7.4。当我执行以下命令时:

@lc2530hz:~$ journalctl -xe

Jun 04 16:46:22 lc2530hz nginx[14701]: nginx: [emerg] bind() to [::]:80 failed (98: Address alre
Jun 04 16:46:22 lc2530hz rtkit-daemon[3488]: Supervising 5 threads of 3 processes of 1 users.
Jun 04 16:46:22 lc2530hz rtkit-daemon[3488]: Supervising 5 threads of 3 processes of 1 users.

然后我尝试了以下命令:

$     sudo netstat -plant | grep 80

tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      1953/nginx: master  
tcp        0      0 192.168.1.146:44802     151.101.192.233:443     ESTABLISHED 5957/firefox        
tcp        0      0 192.168.1.146:53902     72.21.91.29:80          ESTABLISHED 5957/firefox        
tcp        0      0 192.168.1.146:38040     44.239.205.250:443      ESTABLISHED 5957/firefox        
tcp        0      0 192.168.1.146:48782     151.101.180.157:443     ESTABLISHED 5957/firefox        
tcp        0      0 192.168.1.146:37252     13.249.79.210:80        ESTABLISHED 5957/firefox        
tcp6       0      0 :::80                   :::*                    LISTEN      1953/nginx: master  
tcp6       0      0 2600:1700:e040:79:48006 2600:1901:0:e988:::443  ESTABLISHED 5957/firefox        
tcp6       0      0 2600:1700:e040:79:56636 2607:f8b0:4000:800::443 ESTABLISHED 5957/firefox        
tcp6       0      0 2600:1700:e040:79:36172 2600:1404:cc00:3::17:80 ESTABLISHED 5957/firefox        
tcp6       0      0 2600:1700:e040:79:51358 2607:f8b0:4000:80b::443 ESTABLISHED 5957/firefox        
tcp6       0      0 2600:1700:e040:79:39800 2606:4700::6810:f8f:443 ESTABLISHED 5957/firefox        
tcp6       0      0 2600:1700:e040:79:38298 2607:f8b0:4000:80b:::80 ESTABLISHED 5957/firefox        
tcp6       0      0 2600:1700:e040:79:55804 2a04:4e42:400::396:443  

请有人指导我如何解决这个问题。

祖尔菲。

==2022 年 6 月 8 日更新

@waltinator 你好,我得到了与上面相同的答案,即 firsfox 和 nginx 共享端口 80。

nginx    2146 www-data    6u  IPv4  37535      0t0  TCP *:http (LISTEN)
nginx    2146 www-data    7u  IPv6  37536      0t0  TCP *:http (LISTEN)
nginx    2147 www-data    6u  IPv4  37535      0t0  TCP *:http (LISTEN)
nginx    2147 www-data    7u  IPv6  37536      0t0  TCP *:http (LISTEN)
firefox 24166    zulfi  118u  IPv4 251955      0t0  TCP lc2530hz.attlocal.net:44274->server-108-138-165-98.dfw56.r.cloudfront.net:http (ESTABLISHED)
firefox 24166    zulfi  157u  IPv6 251982      0t0  TCP lc2530hz.attlocal.net:60494->rw-in-f94.1e100.net:http (ESTABLISHED)
firefox 24166    zulfi  161u  IPv6 251978      0t0  TCP lc2530hz.attlocal.net:60486->rw-in-f94.1e100.net:http (ESTABLISHED)

相关内容