ubuntu安装nginx报错:Failed to start A high performance web server and a reverse proxy server
环境
系统: 阿里云Ubuntu18.04 TLS
nginx版本: 1.14.0
问题描述
出于某些原因,nginx来来回回装了好几遍,最后出现的这个报错:
Failed to start A high performance web server and a reverse proxy server
完整报错信息如下:
$ systemctl status nginx
* nginx.service - A high performance web server and a reverse proxy serverLoaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)Active: failed (Result: exit-code) since Mon 2022-03-14 20:59:24 CST; 3min 22s agoDocs: man:nginx(8)Main PID: 17851 (code=exited, status=0/SUCCESS)Mar 14 20:59:23 aliyum nginx[25077]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Mar 14 20:59:23 aliyum nginx[25077]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Mar 14 20:59:23 aliyum nginx[25077]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Mar 14 20:59:23 aliyum nginx[25077]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Mar 14 20:59:24 aliyum nginx[25077]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Mar 14 20:59:24 aliyum nginx[25077]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Mar 14 20:59:24 aliyum nginx[25077]: nginx: [emerg] still could not bind()
Mar 14 20:59:24 aliyum systemd[1]: nginx.service: Control process exited, code=exited status=1
Mar 14 20:59:24 aliyum systemd[1]: nginx.service: Failed with result 'exit-code'.
Mar 14 20:59:24 aliyum systemd[1]: Failed to start A high performance web server and a reverse proxy server.
解决
一开始重装的时候没有出现这个报错,重装了几次才出现的。一开始的时候还以为重装时卸载不干净造成的。
最后发现 虽然nginx卸载了,但是依然有正在运行的nginx实例
可以查看下端口占用:
netstat -apn | grep 80
所以答案就出来了:把进程杀掉就可以了,连重装都不用重装
ubuntu安装nginx报错:Failed to start A high performance web server and a reverse proxy server相关推荐
- open with code 报错没有项目_Python开发:解决Ubuntu安装tesserocr报错
tesserocr是Python的一个OCR库, 其中OCR指的是光学字符识别,是指通过扫描字符,然后通过其形状将其翻译成电子文本的过程. tesserocr是tesseract做的一层Python ...
- Ubuntu安装tensorflow报错:tensorflow-xx.whl not a supported wheel on this platform
解决Ubuntu安装tensorflow报错:tensorflow-0.5.0-cp27-none-linux_x86_64.whl is not a supported wheel on this ...
- 【在Windows7旗舰版下安装Anaconda报错failed to create menus】
安装Anaconda报错failed to create menus 装了N次的Anaconda,第一次出现这种错误,觉得很有意思,于是在网上大概搜索了大家给的处理方法: 安装路径中不能包含中文字符, ...
- 安装scrapy报错failed with error code 1 in C:\Users\ADMINI~\AppData\Local\Temp\pip-install-4447ozxq\Twist
安装scrapy的时候报错安装scrapy报错failed with error code 1 in C:\Users\ADMINI~1\AppData\Local\Temp\pip-install- ...
- ubuntu安装celery报错 encountered error while generating package metadata
ubuntu安装celery报错 encountered error while generating package metadata Preparing metadata (setup.py) . ...
- 安装scrapy报错failed with error code 1 in C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-dvrc8k5o\Twis
安装scrapy的时候报错failed with error code 1 in C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-dvrc8k5o\T ...
- Ubuntu安装docker报错:Package ‘docker-ce‘ has no installation candidate
Package 'docker-ce' has no installation candidate Ubuntu 20.04.3 安装docker报错 报错一: E: Package 'docker- ...
- 解决WSL2/ubuntu安装软件报错 E: Invalid operation insatll 问题
文章目录 解决WSL2安装软件报错E: Invalid operation insatll 问题 方法一 方法二 解决WSL2安装软件报错E: Invalid operation insatll 问题 ...
- ubutun 因为端口冲突引起安装nginx报错的解决方法
0. 错误状态 Job for nginx.service failed because the control process exited with error code. See "s ...
- ubuntu安装mysql报错_解决Ubuntu 12.04中更改MySQL默认编码报错
Ubuntu 12.04,安装了MySQL,完了之后,更改了字符编译,就报错.感觉很郁闷. 环境: root@ubuntu:~# uname -a Linux ubuntu 3.2.0-23-gene ...
最新文章
- zabbix详细介绍及其自动动态发现
- 主流浏览器新版本将不再支持TLS 1.0/1.1
- UI(UGUI)框架(一)---------概述与保存/读取面板类型与路径
- Java代码输出到txt文件(申请专利贴源码的必备利器)
- Spring4:没有默认构造函数的基于CGLIB的代理类
- 判断参数并赋予默认值
- webmagic框架
- javascript返回页面顶部_RobotFramework: 执行JavaScript语句
- Android 基础知识 -- Linux环境搭建
- 力扣-973. 最接近原点的 K 个点
- 元素周期表Mac动态桌面壁纸
- 双机热备份VRRP原理详解(附实验)
- 20220119思维导图
- English Songs
- 司凤为璇玑抗鸿蒙熔炉,琉璃:结局最惨的是司凤和若玉?而是让人心疼的他,他死的太可惜...
- 线性回归、lasso回归、岭回归以及弹性网络的系统解释
- “物联网开发实战”学习笔记-(四)智能音箱制作和语音控制
- 【电商】电商供应链产品介绍
- 迅雷之CDN加速下载/离线下载
- 多用户php商城源码,bymall B2B2C多用户开源商城系统 php版 v1.0.4