Иногда бывает ситуация когда dev-сервер по какой-либо причине не закрылся и висит в процессах, занимая порт.
Это может быть из-за падения IDE или просто сам забыл погасить и закрыл терминал.
Для таких случаев я набросал простую функцию с командой:
kill_on_port() {
port=$(lsof -t -i:$1)
echo "KILL PROCESS:" $port
sudo kill -9 $port
}
alias killonport="kill_on_port $@"
Код поместить в ~/.bashrc и рестартнуть систему.
Если во время старта dev-сервера получаете ошибку что порт уже занят, просто выполните команду, подставив свой порт.
Bash
kill_on_port 8000
Скорее всего бесполезно, если другой процесс назначен на перезапуск вашего dev-сервера в случае падения.
Имя команды можете изменить на любое другое.
#linux
Methylene Blue and Nicotine Patch in Cancer Treatment with Dr. Silva
"In cancer, I think, It is actually wonderful because what it, methylene blue is, it's an electron carrier and an oxygen carrier. So this is what helps clean out the mitochondria and oxygenates the system. I also love the nicotine patch. Okay, this is something that helps excrete the virus."
Watch the entire episode at #ManInAmerica (https://jiii.io/jpgpml)
Shocking Truth: Oncologists BANNED from Discussing Cheap Cancer Cures? 🚨
The truth about cancer treatment: Drugs like Ivermectin and Fenbendazole, which are off patent and dirt cheap, are off limits for discussion. Oncologists at top tier hospitals like MD Anderson and Johns Hopkins can't even mention them, despite peer-reviewed evidence supporting their use. Why? Because Big Pharma dictates what treatments are 'allowed.' Patients are turning to me for alternatives because the system is broken.
Time to question the status quo in cancer care. Your life might depend on it.
Share if you support the right to know about all cancer treatment options! #Cancer#BigPharma#ManInAmerica