nginx trouble shooting
2016-02-04 11:40
513 查看
除去配置语法失误、逻辑失误
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.如后端做了域名分流,后端仍有后端,检查后-后端连通
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.如后端做了域名分流,后端仍有后端,检查后-后端连通
相关文章推荐
- Nginx虚拟主机
- Symfony2在Nginx下的配置方法图文教程
- nginx下支持PATH_INFO的方法实例详解
- Nginx隐藏主机信息,proxy_hide_header 与fastcgi_hide_header
- Symfony2在Nginx下的配置方法图文教程
- Linux系统下Nginx服务器部署
- 阶段性理解php-fpm与nginx的关系
- Nginx与ZeroMQ的结合
- 解决504 Gateway Time-out(nginx)
- Nginx出现413 Request Entity Too Large错误解决方法
- uwsgi+nginx+web.py备忘
- Nginx handle的两种挂载方式
- Nginx+Mysql+php 安装步骤
- LNMP 安装及配置
- 在Linux上使用web2py_uwsgi_nginx搭建web服务器
- fastdfs-nginx-module安装
- nginx的使用
- Nginx部署
- thinkphp 在 nginx 中配置 (rewrite)
- 转帖一下《深入理解Nginx》在线支持网站的勘误,访问太慢了