问题描述:
环境设备:macpro
启动flask时, 提示端口5000被占用,报错:
Port 5000 is in use by another program. Either identify and stop that program, or start the server with a different port.
解决方案:
- 打开mac终端,输入命令:lsof -i:5000
- 关闭进程:kill <pid>
环境设备:macpro
启动flask时, 提示端口5000被占用,报错:
Port 5000 is in use by another program. Either identify and stop that program, or start the server with a different port.