Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问如何运行使得能外网访问 #1

Closed
EatMedicine opened this issue Mar 12, 2018 · 5 comments
Closed

请问如何运行使得能外网访问 #1

EatMedicine opened this issue Mar 12, 2018 · 5 comments

Comments

@EatMedicine
Copy link

先感谢dalao的重置,下载运行发现默认在127.0.0.1运行,我是在服务器上架的,想知道如何修改,要是能修改端口就更好了_(:з」∠)_(

@DYH89
Copy link

DYH89 commented Mar 12, 2018

@EatMedicine 用nginx做反向代理,就可以了呀.

@EatMedicine
Copy link
Author

@duhawk 这样就太麻烦了吧。。。有点。。服务器是学生服务器配置低_(:з」∠)_ 多装一个软件其他速度就下来了。。还是希望有个配置文件可以修改IP和端口

@xtyxtyx
Copy link

xtyxtyx commented Mar 13, 2018

我来答下哈

这个地方

像这样

if __name__== '__main__':
app.run(
    host = '0.0.0.0',
    port = 80
)

@xx13295
Copy link

xx13295 commented Mar 13, 2018

dalao 牛逼

@EatMedicine
Copy link
Author

@xtyxtyx 感谢dalao

@East196 East196 closed this as completed Apr 17, 2018
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants