惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
Security Archives - TechRepublic
C
Cyber Attacks, Cyber Crime and Cyber Security
P
Proofpoint News Feed
Cisco Talos Blog
Cisco Talos Blog
L
Lohrmann on Cybersecurity
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
CERT Recently Published Vulnerability Notes
S
Secure Thoughts
H
Hacker News: Front Page
I
Intezer
Cyberwarzone
Cyberwarzone
T
Tor Project blog
The Last Watchdog
The Last Watchdog
Google DeepMind News
Google DeepMind News
T
Threatpost
T
Tenable Blog
NISL@THU
NISL@THU
AWS News Blog
AWS News Blog
阮一峰的网络日志
阮一峰的网络日志
T
Troy Hunt's Blog
E
Exploit-DB.com RSS Feed
V
Visual Studio Blog
W
WeLiveSecurity
腾讯CDC
The GitHub Blog
The GitHub Blog
T
The Exploit Database - CXSecurity.com
Engineering at Meta
Engineering at Meta
H
Hackread – Cybersecurity News, Data Breaches, AI and More
V
V2EX - 技术
A
Arctic Wolf
N
Netflix TechBlog - Medium
S
Securelist
WordPress大学
WordPress大学
Schneier on Security
Schneier on Security
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Vercel News
Vercel News
Recent Commits to openclaw:main
Recent Commits to openclaw:main
AI
AI
N
News | PayPal Newsroom
T
The Blog of Author Tim Ferriss
B
Blog
Apple Machine Learning Research
Apple Machine Learning Research
Help Net Security
Help Net Security
Google Online Security Blog
Google Online Security Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
G
Google Developers Blog
小众软件
小众软件
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Cloudbric
Cloudbric
P
Palo Alto Networks Blog

Tornado

docker 多进程部署 tornado - V2EX Tornado 如何拿到传输的文件流 - V2EX Tornado 的异步 怎么写的 - V2EX tornado 下 ckeditor 图片上传问题 - V2EX Tornado 异步怎么写的? - V2EX tornado 怎么能确保端口挂了 服务也不会停止? - V2EX Tornado 路由有什么好方法,一个一个写太麻烦了,有没有根据 url 和注解匹配的方法呢 - V2EX Tornado V4.5 release pypy 拿到赞助之后出了支持 Python3.5 的版本 - V2EX 请教 tornado 文件上传问题 tornado 做后台服务,如果前端没有用 cookie. - V2EX tornado 优秀项目推荐 问一个 tornado 解决阻塞的方案问题? - V2EX tornaqiniu(基于 tornado 的异步七牛 sdk) tornado 并行异步,如何保证在只有部分请求成功后,结果依旧可用。 - V2EX nginx 反向代理 tornado,如何 location 首页u rl? - V2EX 问一个关于 tornado 异常处理的新手问题 - V2EX tornado 的 coroutine 能和自定义的装饰器一起使用吗?? - V2EX Tornado 并发数很低,正常么? - V2EX 阅读 Tornado 源码过程中的一个疑惑,求解答 - V2EX gtornado - tornado 中 pymysql, pymemcache, storm orm 支持库 - V2EX Tornado 如何组织中大型项目,你们都是怎么样做的? - V2EX Tornado 4.3 发布 Tornado 官方怎么不好好维护一个 sql 的异步数据库驱动? 关于 tornado 阻塞的问题 tornado 的 mysql 异步驱动性能测试 pypy 之 tornado tornado 多个 url RequestHandler 类的 get_current_user() 方法覆写无效 tornado 动态添加 url 的问题 tornado 怎么利用'next'参数进行页面跳转 finish() called twice 阿里云 ECS 1CPU 1G 1Mbs 跑 tornado 开多少进程合适? tornado.locale.format_date()的日期汉化问题 Tornado 分页问题求解! Tornado 开发中出错调试如何像 PHP 一样? 新手完全不懂 tornado.concurrent.Future 有多少人 有付费学习 Tornado 的意愿,这是一个学习网站。 请问下 tornado 在 ios app 后台方面有成熟的实现吗? 新手求教关于 Tornado + SQLite 的两个问题 Tornado 4.1 关于优雅地部署 Tornado 新代码的一种方式 Tornado Template 如何获得 JavaScript 中的 var 变量? 学习 "Introduction to tornado" 提问 用 Tornado + Mongodb 开发要注意什么? 用 Tornado 做的网站,大家在写测试的时候,一般都是怎么做的呢? 分享本人基于 tornado 开发的应用层框架 Nginx 多端口运行 Tornado 如何获取当前端口 Tornado 框架如何写 MVC 模式?
tornado 跑不通,小白求帮忙 - V2EX
lydhr · 2015-11-23 · via Tornado

这是一个创建于 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)

arbipher

1

arbipher      2015 年 11 月 23 日

本机肯定装 nginx 了。
0.0.0.0:8000 端口冲突了吗? tornado 换一个端口试试。

gateswong

3

gateswong      2015 年 11 月 23 日

我觉得问题问得不对……

从你的问题看来实际上跟 Tornado 毛线关系都没有,检查一下你的防火墙, nginx 安装位置和配置文件什么的吧

Eleutherios

4

Eleutherios      2015 年 11 月 23 日 via iPhone

sudo netstat -ntplu

zhouzhe8013

5

zhouzhe8013      2015 年 11 月 23 日

啥机器,linux?mac?win?
tornado 不需要 nginx,先确定一下 tornado 有没有启动吧
然后看看端口占用
netstat -anpt|grep PID 或者端口
看看 tornado 在监听那个端口或者你想要的哪个端口被占了

ldehai

6

ldehai      2015 年 11 月 23 日

@lydhr 先别管 nginx 的事,首先看你的程序监听的什么端口,比如 8888 。
如果是的话,直接访问 localhost:8888 就行了

lydhr

8

lydhr      2015 年 11 月 26 日

@arbipher 如何找到本机的 nginx 装在哪里了?
- 重启后访问 0.0.0.0 仍是 welcome to nginx 页面
- 用 chrome 审查元素抓到:
- Remote Address:127.0.0.1:1080
- Request URL:http://0.0.0.0/
- lsof -i:1080
`
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
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)
IMRemoteU 517 lynn 13u IPv4 0x383a136006f5f045 0t0 TCP localhost:61106->localhost:socks (CLOSE_WAIT)
`

lydhr

9

lydhr      2015 年 11 月 26 日

@arbipher 如何找到本机的 nginx 装在哪里了?
- 重启后访问 0.0.0.0 仍是 welcome to nginx 页面

- 用 chrome 审查元素抓到:
- Remote Address:127.0.0.1:1080
- Request URL:http://0.0.0.0/

- lsof -i:1080
`
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
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)
IMRemoteU 517 lynn 13u IPv4 0x383a136006f5f045 0t0 TCP localhost:61106->localhost:socks (CLOSE_WAIT)
`

lydhr

11

lydhr      2015 年 11 月 27 日

@arbipher
$ ps -ef |grep nginx
501 1861 458 0 1:11 下午 ttys000 0:00.00 grep nginx