Failed to start LSB: starts the nginx web server.解决方案

本文介绍了解决Linux环境下Nginx启动失败的方法,包括查询Nginx主进程号、终止重复进程及重启Nginx服务的具体步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

linux下nginx报错 Failed to start LSB: starts the nginx web server.
查询nginx主进程号
1、命令:ps -ef | grep nginx
杀死相同的进程
2、 kill 重复的进程-命令skill
skill 87488
3、重启nginx

systemctl restart nginx
systemctl status nginx

在这里插入图片描述

[root@iZbp11irq8z6b1plo30y63Z ~]# sudo systemctl status nginxnginx.service - LSB: starts the nginx web server Loaded: loaded (/etc/rc.d/init.d/nginx; bad; vendor preset: disabled) Active: failed (Result: exit-code) since Mon 2025-03-10 09:10:25 CST; 29min ago Docs: man:systemd-sysv-generator(8) Process: 32724 ExecStop=/etc/rc.d/init.d/nginx stop (code=exited, status=1/FAILURE) Process: 6383 ExecStart=/etc/rc.d/init.d/nginx start (code=exited, status=1/FAILURE) Mar 10 09:10:23 iZbp11irq8z6b1plo30y63Z nginx[6383]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Mar 10 09:10:24 iZbp11irq8z6b1plo30y63Z nginx[6383]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Mar 10 09:10:24 iZbp11irq8z6b1plo30y63Z nginx[6383]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Mar 10 09:10:25 iZbp11irq8z6b1plo30y63Z nginx[6383]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Mar 10 09:10:25 iZbp11irq8z6b1plo30y63Z nginx[6383]: nginx: [emerg] still could not bind() Mar 10 09:10:25 iZbp11irq8z6b1plo30y63Z nginx[6383]: failed Mar 10 09:10:25 iZbp11irq8z6b1plo30y63Z systemd[1]: nginx.service: control process exited, code=exited status=1 Mar 10 09:10:25 iZbp11irq8z6b1plo30y63Z systemd[1]: Failed to start LSB: starts the nginx web server. Mar 10 09:10:25 iZbp11irq8z6b1plo30y63Z systemd[1]: Unit nginx.service entered failed state. Mar 10 09:10:25 iZbp11irq8z6b1plo30y63Z systemd[1]: nginx.service failed. [root@iZbp11irq8z6b1plo30y63Z ~]# 什么情况?
03-11
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值