root@r720:/var/www/pterodactyl# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
--
root@r720:/var/www/pterodactyl# systemctl status nginx.service
● 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 Thu 2024-08-08 07:12:49 UTC; 2min 7s ago
Docs: man:nginx(8)
Process: 5906 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
Process: 5917 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=1/FAILURE)
Aug 08 07:12:48 r720 nginx[5917]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Aug 08 07:12:48 r720 nginx[5917]: nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
Aug 08 07:12:48 r720 nginx[5917]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Aug 08 07:12:48 r720 nginx[5917]: nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
Aug 08 07:12:49 r720 nginx[5917]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Aug 08 07:12:49 r720 nginx[5917]: nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
Aug 08 07:12:49 r720 nginx[5917]: nginx: [emerg] still could not bind()
Aug 08 07:12:49 r720 systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Aug 08 07:12:49 r720 systemd[1]: nginx.service: Failed with result 'exit-code'.
Aug 08 07:12:49 r720 systemd[1]: Failed to start A high performance web server and a reverse proxy server.
root@r720:/var/www/pterodactyl#