bailing
bailing copied to clipboard
Mac上main端口5000被占用了
错误如下:
(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端口的代码,但是没有效果。
建议端口这样的参数放在配置文件里面吧
请问解决了吗?怎么修改端口呢?