zoukankan      html  css  js  c++  java
  • nginx trouble shooting

    除去配置语法失误、逻辑失误

    nginx中的大部分问题都是前端到后端联通性

    curl 域名没反应

    cyr@test:/etc/nginx/sites-enabled$ curl test.hehe.example.com -vvv
    * About to connect() to test.hehe.example.com port 80 (#0)
    * Trying 192.168.154.33...
    * connected
    * Connected to test.hehe.example.com (192.168.154.33) port 80 (#0)
    > GET / HTTP/1.1
    > User-Agent: curl/7.26.0
    > Host: test.hehe.example.com
    > Accept: */*
    >
    * additional stuff not fine transfer.c:1037: 0 0
    * additional stuff not fine transfer.c:1037: 0 0
    * additional stuff not fine transfer.c:1037: 0 0
    * additional stuff not fine transfer.c:1037: 0 0
    * additional stuff not fine transfer.c:1037: 0 0
    ^C

    1.检查nginx是否正常启动状态,否则nginx.conf中cores目录是否存在,否则创建

    2.检查前端到后端,直接curl 后端ip:port

    3.如后端做了域名分流,后端仍有后端,检查后-后端连通

  • 相关阅读:
    C++高精度乘法
    经典的7种排序算法 原理C++实现
    c++ STL
    二分查找c++
    洛谷P1111 修复公路
    01背包写法
    c++编码规范
    github教程
    windows10锁定屏幕聚焦图片导出
    week 6 Spring history and design philosophy
  • 原文地址:https://www.cnblogs.com/clovn/p/5181242.html
Copyright © 2011-2022 走看看