python在浏览器运行_如何从主机浏览器访问正在运行的python?

我在windows中安装了Vagrant,现在我有了一个虚拟的ubuntu,我运行了一个python脚本:vagrant@precise32:/vagrant/FlaskMysql/FlaskApp$ ls

app.py static storedPro.txt templates

vagrant@precise32:/vagrant/FlaskMysql/FlaskApp$ python app.py

* Running on http://127.0.0.1:5002/ (Press CTRL+C to quit)

我的流浪者档案:

^{pr2}$

我试图从我窗口的浏览器访问上面的地址索引.html页面几秒钟后出现,然后消失。在

更新:vagrant@precise32:/vagrant/FlaskMysql/FlaskApp$ curl http://127.0.0.1:5000

500 Internal Server Error

Internal Server Error

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or

there is an error in the application.

谢谢。在

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值