运行 sudo systemctl status nginx
时报错
root@sunbingchen-pc:/home/geek# sudo 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: enabled)
Active: failed (Result: exit-code) since Tue 2024-07-09 12:29:55 CST; 10min ago
Docs: man:nginx(8)
Process: 3556 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/>
Process: 3557 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=1/FAILURE)
7月 09 12:29:53 sunbingchen-pc nginx[3557]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already i>
7月 09 12:29:53 sunbingchen-pc nginx[3557]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in u>
7月 09 12:29:54 sunbingchen-pc nginx[3557]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already i>
7月 09 12:29:54 sunbingchen-pc nginx[3557]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in u>
7月 09 12:29:54 sunbingchen-pc nginx[3557]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already i>
7月 09 12:29:54 sunbingchen-pc nginx[3557]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in u>
7月 09 12:29:55 sunbingchen-pc nginx[3557]: nginx: [emerg] still could not bind()
7月 09 12:29:55 sunbingchen-pc systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILU>
7月 09 12:29:55 sunbingchen-pc systemd[1]: nginx.service: Failed with result 'exit-code'.
7月 09 12:29:55 sunbingchen-pc systemd[1]: Failed to start A high performance web server and a reverse proxy >
lines 1-17/17 (END)
上一篇: 测试