




















这是一个创建于 3856 天前的主题,其中的信息可能已经有所发展或是发生改变。
Context :
- tornado 的 helloWorld 教程代码跑不通, localhost:8000 会报错‘未收到数据’
- 本机并未装 Nginx ,但是 0.0.0.0 打开后会显示 Welcome to nginx!那个欢迎页
- terminal 中, nginx command not found
Question :
- 如何定位自己的 nginx 转到哪里了?
- tornado 的 helloWorld 哪里不对?
第 1 条附言 · 2015 年 11 月 25 日
自己用 tornado 写的 app.py 现在已经可以在*: 5000 跑起来了
但是还是奇怪我到底什么时候装了 nginx ?到底装在哪里了?
mac os x 10.11.1
当我打开 0.0.0.0 显示 welcome to nginx 页面时,用 chrome 的 network 抓到,:
Remote Address:127.0.0.1:1080
Request URL:http://0.0.0.0/
Request Method:GET
Status Code:200 OK (from cache)
lsof -i:1080 得到:
(我装了 shadowsocks , google 应该是 chrome 吧?(字数有限,删掉了 command 重复的))
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
mapspushd 498 lynn 5u IPv4 0x383a1360077d5b05 0t0 TCP localhost:64334->localhost:socks (ESTABLISHED)
IMRemoteU 517 lynn 5u IPv4 0x383a13600f203cc5 0t0 TCP localhost:61101->localhost:socks (CLOSE_WAIT)
IMRemoteU 517 lynn 12u IPv4 0x383a136006bc1225 0t0 TCP localhost:61100->localhost:socks (CLOSE_WAIT)
com.apple 531 lynn 11u IPv4 0x383a13600a79f5a5 0t0 TCP localhost:63719->localhost:socks (ESTABLISHED)
Shadowsoc 922 lynn 47u IPv4 0x383a136006f3d925 0t0 TCP localhost:socks->localhost:63939 (ESTABLISHED)
Google 3019 lynn 14u IPv4 0x383a136007a58e85 0t0 TCP localhost:63741->localhost:socks (ESTABLISHED)
1 arbipher 2015 年 11 月 23 日本机肯定装 nginx 了。 |
3 gateswong 2015 年 11 月 23 日我觉得问题问得不对…… 从你的问题看来实际上跟 Tornado 毛线关系都没有,检查一下你的防火墙, nginx 安装位置和配置文件什么的吧 |
4 Eleutherios 2015 年 11 月 23 日 via iPhonesudo netstat -ntplu |
5 zhouzhe8013 2015 年 11 月 23 日啥机器,linux?mac?win? |
8 lydhr 2015 年 11 月 26 日@arbipher 如何找到本机的 nginx 装在哪里了? |
9 lydhr 2015 年 11 月 26 日@arbipher 如何找到本机的 nginx 装在哪里了? - 用 chrome 审查元素抓到: - lsof -i:1080 |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。