Иногда бывает ситуация когда 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
🟩Stake To Earn on #TokenPocket wallet!
TokenPocket now supports The_HaqqNetwork users to stake $ISLM on TokenPocket wallet, and the APR reaches 3.54%~5.06%!
#HAQQ is a scalable and interoperable Ethereum, built on Proof-of-Stake with fast-finality. #Islamic Coin $ISLM is a native currency of Haqq.
The staking service is powered by ColossusItaly!
#Ethiopia: Religious councils, OLA condemn killing of civilians in #East_Arsi, call for swift accountability
The Permanent Synod of the Ethiopian #Orthodox Tewahedo Church, the #Inter-Religious Council of Ethiopia, and the Ethiopian #Islamic Affairs Supreme Council have issued separate statements condemning the killing of 21 civilians in #Shirka Woreda, East Arsi Zone of #Oromia Region, urging authorities to take immediate action to bring perpetrators to justice and strengthen protection for residents.
In their respective statements, the religious institutions denounced the attack and called for swift, transparent investigations, warning against attempts to exploit the incident to incite further violence.
The Oromo Liberation Army (#OLA), for its part, accused what it described as “mercenaries” of moving through Arsi Zone and deliberately targeting Orthodox Christian civilians in an effort to inflame inter-religious and inter-ethnic tensions........
Read more: https://addisstandard.com/?p=55518