nginx服务无法启动(错误记录)

# 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
 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值