Fiz a instalação no Ubuntu 22.04 utilizando o comando "sudo apt-get install nginx" Quando vou verificar o status do serviço com os comandos "systemctl status nginx" ou "service nginx status", recebo a seguinte mensagem:
× 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 2023-06-06 13:01:42 -03; 3h 17min ago Docs: man:nginx(8) Process: 17391 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS) Process: 17392 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=1/FAILURE) CPU: 26ms
jun 06 13:01:41 roberto-desktop nginx[17392]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Unknown error) jun 06 13:01:41 roberto-desktop nginx[17392]: nginx: [emerg] bind() to [::]:80 failed (98: Unknown error) jun 06 13:01:41 roberto-desktop nginx[17392]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Unknown error) jun 06 13:01:41 roberto-desktop nginx[17392]: nginx: [emerg] bind() to [::]:80 failed (98: Unknown error) jun 06 13:01:42 roberto-desktop nginx[17392]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Unknown error) jun 06 13:01:42 roberto-desktop nginx[17392]: nginx: [emerg] bind() to [::]:80 failed (98: Unknown error) jun 06 13:01:42 roberto-desktop nginx[17392]: nginx: [emerg] still could not bind() jun 06 13:01:42 roberto-desktop systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE jun 06 13:01:42 roberto-desktop systemd[1]: nginx.service: Failed with result 'exit-code'. jun 06 13:01:42 roberto-desktop systemd[1]: Failed to start A high performance web server and a reverse proxy server.
Ao acessar o localhost no navegador, abre normalmente o index.html, mas não consigo acessar o status, nem parar ou reiniciar o servidor.
O que pode estar ocasionando este erro?