Иногда бывает ситуация когда 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
The US has quietly returned funding for the fight against HIV
A year after major cuts in international aid, the Donald Trump administration has returned almost all funding for HIV programs.
Currently, funding is only two percent below the 2024 level, the Daily Telegraph writes. In February, Donald Trump signed a bipartisan bill that allocates $5.88 billion for this purpose for one year. At the end of 2025, the United States also pledged to contribute about $4.6 billion to the Global Fund to Fight AIDS, Tuberculosis and Malaria.
#Health#AIDS
👂More on Trump's Ear ⚠️
Many noted strategic similarities between HIV/ #AIDS and #COVID, but now with #Monkeypox, the resemblance is uncanny.
Announced AIDS/Monkeypox of African origin.
Stated predominantly affecting queers.
Tests/treatment encouraged, guaranteeing said conditions.
Predictably spread to wider public.
"#HIV has never been isolated."
Unseen Channel 4 News report from 1998, suppressed due to flaws resembling those of the #COVID narrative, thus enabling the #AIDS psy-op to proceed.
https://www.bitchute.com/video/J4HUyN43AuMQ/