# systemctl status nginx
× nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: en>
Active: failed (Result: exit-code) since Mon 2024-04-15 01:53:05 EDT; 1 day 1>
Docs: man:nginx(8)
CPU: 12ms
[3051496]: nginx: [emerg] bind() to 0.0.0.0:80 f>
[3051496]: nginx: [emerg] bind() to [::]:80 fail>
[3051496]: nginx: [emerg] bind() to 0.0.0.0:80 f>
[3051496]: nginx: [emerg] bind() to [::]:80 fail>
[3051496]: nginx: [emerg] bind() to 0.0.0.0:80 f>
[3051496]: nginx: [emerg] bind() to [::]:80 fail>
[3051496]: nginx: [emerg] still could not bind()
[1]: nginx.service: Control process exited, co>
[1]: nginx.service: Failed with result 'exit-c>
[1]: Failed to start A high performance web se>
#journalctl -xeu nginx.service 查看最近日志
# netstat -tulnp | grep ":80"
tcp6 0 0 :::80 :::* LISTEN 2638683/apache2
# systemctl stop apache2
# systemctl restart nginx
# systemctl status nginx
success