In Python’s flask framework, address already in use
This error message indicates that you have a process bound to the default port (5000). If you have run the same module before, it is likely that the process is still bound to the port.
First, use the port window to find the process:
sudo lsof - i : 5000
If nothing unexpected happens, after executing the above command, the port will display the running port: the number of 5000 process
Kill the executing process:
kill process number
Similar Posts:
- Error: listen eaddinuse: address already in use (Solution to Server Port Occupation)
- [Solved] Cannot use lsof command “- bash: lsof: command not found” in centos6
- Linux transport error 202: bind failed: Address already in use
- [Solved] activemq Startup Error: Address already in use: JVM_Bind
- [Solved] #Creating Server TCP listening socket *:6379: bind: Address already in use
- Solve the error of gitbook serve Error: listen EADDRINUSE: address already in use :::35729
- Nginx Error: too many open files [How to Solve]
- ADB Server Didn’t ACK, failed to Start Daemon settlement record
- [Solved] ADB Connect Error: failed to start daemon
- [Solved] Error: listen EADDRINUSE: address already in use 127.0.0.1:3000