您的位置:首页 > 运维架构 > Nginx

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.如后端做了域名分流,后端仍有后端,检查后-后端连通
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: