flask——pycharm指定ip运行

原文链接:https://blog.csdn.net/legend818/article/details/121659919

pycharm 运行 flask项目指定访问ip与端口

 

run-Edit-Configuration 中,找到Additinal options栏 :手动写入 --host=x.x.x.x --port=xxxx

 

 这时候你就会发现启动得控制台显示地址就是正确得:

 

posted @ 2022-02-19 17:21  稚人  阅读(525)  评论(0编辑  收藏  举报