sudo systemctl start nginx Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details. [root@iZf8zb12gzozarzd9v5jloZ etc]# systemctl status nginx.service ● nginx.service - The nginx HTTP and reverse proxy server Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Wed 2023-09-20 16:58:30 CST; 6s ago Process: 61954 ExecStart=/usr/sbin/nginx (code=exited, status=1/FAILURE) Process: 61952 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=0/SUCCESS) Process: 61950 ExecStartPre=/usr/bin/rm -f /run/nginx.pid (code=exited, status=0/SUCCESS)
Sep 20 16:58:29 iZf8zb12gzozarzd9v5jloZ nginx[61954]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Sep 20 16:58:29 iZf8zb12gzozarzd9v5jloZ nginx[61954]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use) Sep 20 16:58:29 iZf8zb12gzozarzd9v5jloZ nginx[61954]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Sep 20 16:58:29 iZf8zb12gzozarzd9v5jloZ nginx[61954]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use) Sep 20 16:58:30 iZf8zb12gzozarzd9v5jloZ nginx[61954]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Sep 20 16:58:30 iZf8zb12gzozarzd9v5jloZ nginx[61954]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use) Sep 20 16:58:30 iZf8zb12gzozarzd9v5jloZ nginx[61954]: nginx: [emerg] still could not bind() Sep 20 16:58:30 iZf8zb12gzozarzd9v5jloZ systemd[1]: nginx.service: Control process exited, code=exited status=1 Sep 20 16:58:30 iZf8zb12gzozarzd9v5jloZ systemd[1]: nginx.service: Failed with result 'exit-code'. Sep 20 16:58:30 iZf8zb12gzozarzd9v5jloZ systemd[1]: Failed to start The nginx HTTP and reverse proxy server.