Ubuntu Nginx-98:地址已在使用中,无法绑定到端口433和80

Ubuntu Nginx-98:地址已在使用中,无法绑定到端口433和80,ubuntu,nginx,server,Ubuntu,Nginx,Server,我不知道该怎么办,我用端口443和80杀死了所有东西,更新了所有SSL证书。 我第一次在StackOverflow上发帖子,压力很大 我尝试/遵循的事情: nginx似乎正在端口80和443上运行。到底是什么问题?您是否正在尝试启动第二个nginx实例?nginx似乎正在端口80和443上运行。到底是什么问题?您正在尝试启动第二个nginx实例吗? server@engtoast:/etc/nginx/sites-available$ sudo netstat -tulpn | grep --c

我不知道该怎么办,我用端口443和80杀死了所有东西,更新了所有SSL证书。 我第一次在StackOverflow上发帖子,压力很大

我尝试/遵循的事情:


nginx似乎正在端口80和443上运行。到底是什么问题?您是否正在尝试启动第二个nginx实例?nginx似乎正在端口80和443上运行。到底是什么问题?您正在尝试启动第二个nginx实例吗?
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