Olá pessoal tudo bem? alguém já se deparou com esse erro ?
root@server:/home/admin# service nginx status
● nginx.service
Loaded: not-found (Reason: Unit nginx.service not found.)
Active: failed (Result: exit-code) since Tue 2023-08-08 01:26:31 CDT; 19min ago
CPU: 40ms
Aug 08 01:26:29 hostname.server nginx[5600]: nginx: configuration file /etc/nginx/nginx.conf test is successful
Aug 08 01:26:29 hostname.server nginx[5601]: nginx: [emerg] bind() to 0.0.0.0:22222 failed (98: Address already in use)
Aug 08 01:26:29 hostname.server nginx[5601]: nginx: [emerg] bind() to 0.0.0.0:22222 failed (98: Address already in use)
Aug 08 01:26:30 hostname.server nginx[5601]: nginx: [emerg] bind() to 0.0.0.0:22222 failed (98: Address already in use)
Aug 08 01:26:30 hostname.server nginx[5601]: nginx: [emerg] bind() to 0.0.0.0:22222 failed (98: Address already in use)
Aug 08 01:26:31 hostname.server nginx[5601]: nginx: [emerg] bind() to 0.0.0.0:22222 failed (98: Address already in use)
Aug 08 01:26:31 hostname.server nginx[5601]: nginx: [emerg] still could not bind()
Aug 08 01:26:31 hostname.server systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Aug 08 01:26:31 hostname.server systemd[1]: nginx.service: Failed with result ‘exit-code’.
Aug 08 01:26:31 hostname.server systemd[1]: Failed to start A high performance web server and a reverse proxy server.
root@server:/home/admin#
já tentei instalar várias vezes, estou utilizando um servidor dedicado com Debian 11
obs: alterei o hostname para hostname.server para proteger as informações do servidor