Failed to start The nginx HTTP and reverse proxy server

这篇具有很好参考价值的文章主要介绍了Failed to start The nginx HTTP and reverse proxy server。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

nginx服务常用操作

#查看nginx服务状态
systemctl status nginx.service
#启动nginx服务
systemctl start nginx.service
#停止nginx服务
systemctl stop nginx.service
#重启nginx服务
systemctl restart nginx.service
#重新读取nginx配置(这个最常用, 不用停止nginx服务就能使修改的配置生效)
systemctl reload nginx.service

启动nginx报错:Failed to start The nginx HTTP and reverse proxy server

Failed to start The nginx HTTP and reverse proxy server,Nginx,nginx,http,运维

对于报错的描述是Address already in use,说明端口被占用:

Jun 01 09:54:24 cloud-codec-test-1cd7f2e4d.qiyi.virtual nginx[47909]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Jun 01 09:54:24 cloud-codec-test-1cd7f2e4d.qiyi.virtual nginx[47909]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Jun 01 09:54:25 cloud-codec-test-1cd7f2e4d.qiyi.virtual nginx[47909]: nginx: [emerg] bind() to 0.0.0.0:8900 failed (98: Address already in use)
Jun 01 09:54:25 cloud-codec-test-1cd7f2e4d.qiyi.virtual nginx[47909]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Jun 01 09:54:25 cloud-codec-test-1cd7f2e4d.qiyi.virtual nginx[47909]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)

查看被占用端口:

Failed to start The nginx HTTP and reverse proxy server,Nginx,nginx,http,运维文章来源地址https://www.toymoban.com/news/detail-549076.html

kill占用端口:kill -9 49147

重新启动nginx,成功Failed to start The nginx HTTP and reverse proxy server,Nginx,nginx,http,运维

到了这里,关于Failed to start The nginx HTTP and reverse proxy server的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • 【Failed to start nginx - high performance web server.】

    启动nginx如果报这个错误,一般需要去nginx安装的日志目录查看错误日志文件error.log,我们就可以进一步排查出nginx出现的错误情况 发现报错: 1、找到占用该端口的进程 lsof -i:8000 2、使用kill命令干掉它这个进程 kill -9 pid 3、重启Nginx即可 systemctl restart nginx

    2024年02月11日
    浏览(37)
  • Failed to start connector [Connector[HTTP/1.1-8080]]

    1、解决Web server failed to start. Port 8080 was already in use 2、SpringBoot启动报错:“Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.” 3、Failed to start end point associated with ProtocolHandler [http-nio-8080] 4、Failed to start connector [Connector[HTTP/1.1-8080]] 提示:

    2024年02月13日
    浏览(34)
  • Unable to connect to proxy. Your proxy appears to only use HTTP and not HTTPS, try changing your pro

    使用代理IP代码大概如下: proxy = { ‘http’:‘http://’ + proxy_host, ‘https’:‘https://’ + proxy_host } r = requests.get(url, proxies = proxy) requests.exceptions.ProxyError: HTTPSConnectionPool(host=‘stock2.finance.sina.com.cn’, port=443): Max retries exceeded with url: /futures/api/jsonp.php/=/InnerFuturesNewService.getFewMinLine

    2024年04月15日
    浏览(35)
  • 报错:The Tomcat connector configured to listen on port xxxx failed to start. The port may already be

    APPLICATION FAILED TO START Description: The Tomcat connector configured to listen on port xxxx failed to start. The port may already be in use or the connector may be misconfigured. Action: Verify the connector’s configuration, identify and stop any process that’s listening on port xxxx, or configure this application to listen on another port. 原因:

    2024年02月12日
    浏览(36)
  • The Tomcat connector configured to listen on port 10000 failed to start. The port may already be in

    今天在学谷粒商城,启动一个电商项目,发现一个端口被占用了,记录下来

    2024年02月12日
    浏览(39)
  • 史上最强解决启动nginx出现Failed to start nginx.service:unit not found问题

    参考:https://blog.csdn.net/lvmengzou/article/details/116775114 1、错误原因是没有添加nginx服务,所以启动失败 解决办法 1、在etc/init.d/目录下创建文件,文件名叫nginx,内容为: #!/bin/sh . /etc/rc.d/init.d/functions . /etc/sysconfig/network [ “$NETWORKING” = “no” ] exit 0 nginx=“/usr/local/nginx/sbin/nginx”

    2024年01月18日
    浏览(38)
  • DevEcoStudio安装SDK出现:Network connection failed. Check the network or HTTP proxy settings,

    DevEcoStudio安装SDK出现:Network connection failed. Check the network or HTTP proxy settings 电脑地区问题,安装鸿蒙Studio时,会读取系统地区,如果非中国,就会出现这种情况 mac 在 ~/Library/Application Support/Huawei/DevEcoStudio3.0/options/country.region.xml 文件: 将countryregion设置为 CN windows 文件位置:

    2024年04月22日
    浏览(44)
  • 爬虫requests使用代理报错Your proxy appears to only use HTTP and not HTTPS...

    python版本:3.9.4 requests版本:2.28.2 详细报错如下 代理使用如下: 使用如下代理设置,报错得到解决 总结:由于之前使用的是python3.6.8版本,代理设置为’https’: \\\'https://xxxx’可以正常使用,而升级到python3.9.4则出现了上述问题。建议代理的使用统一为 ‘https’: ‘http://xxxx’

    2024年02月15日
    浏览(48)
  • windows10 安装Docker Desktop时无法启动“Failed to start the Docker Engine“原因分析

    翻遍了很多网上的相关问题,都没有解决,知道我看到这篇博客,发现安装Docker Desktop需要支持CPU支持二级地址转换(SLAT)。 于是去检查电脑是否支持SLAT,方法来自这一文章。 发现自己电脑不支持SLAT。。。

    2024年02月15日
    浏览(36)
  • 报错:HTTP Error 500.30 ASP.NET Core app failed to start

    问题原因: 1.没有安装对应版本的.NET Core Runtime 。 2.发布的代码和服务器上的IIS的Runtime不对应(例:发布的是x86,而服务器上的是x64)。 3.如果版本和操作位数都对应上了,还是报错,应该在IIS-应用程序-选择对应的CLR,设置,启用32位。 解决办法: 1.下载安装对应版本的运行时R

    2024年02月11日
    浏览(33)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包