bailing icon indicating copy to clipboard operation
bailing copied to clipboard

Mac上main端口5000被占用了

Open xiaoqiangch opened this issue 1 year ago • 1 comments

错误如下:

(omni) chenxiaoqiang@MacM4 server % python server.py

  • Serving Flask app 'server'
  • Debug mode: on Address already in use Port 5000 is in use by another program. Either identify and stop that program, or start the server with a different port. On macOS, try disabling the 'AirPlay Receiver' service from System Preferences -> General -> AirDrop & Handoff. (omni) chenxiaoqiang@MacM4 server % python server.py
  • Serving Flask app 'server'
  • Debug mode: on Address already in use Port 5000 is in use by another program. Either identify and stop that program, or start the server with a different port. On macOS, try disabling the 'AirPlay Receiver' service from System Preferences -> General -> AirDrop & Handoff.

我在main.py改了一处用了5000端口的代码,但是没有效果。

建议端口这样的参数放在配置文件里面吧

xiaoqiangch avatar Feb 23 '25 00:02 xiaoqiangch

请问解决了吗?怎么修改端口呢?

secslim avatar Feb 27 '25 09:02 secslim