Answer the question
In order to leave comments, you need to log in
Why is access to port 8000 denied?
after installing This package
The system started listening on port 8000, which is used by django by default.
I want to release port 8000, how can I do it now?
Answer the question
In order to leave comments, you need to log in
which by standard uses djangono, by default, not by standard, just run runserver on any other port.
It's just that someone has already occupied the port. If you are sure that there is nothing important, then just drop this process. I wrote a function like this
kill_on_port() {
port=$(lsof -t -i:$1)
echo "KILL PROCESS:" $port
sudo kill -9 $port
}
alias killonport="kill_on_port [email protected]"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question