Иногда бывает ситуация когда 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 CASE DEFINITION for #EbolaVirusDisease can be found on our website.
Download and read for definitions of:
✅Suspected cases,
✅Probable case and
✅Laboratory confirmed cases of #EbolaVirusDisease
🔗https://ncdc.gov.ng/themes/common/docs/protocols/288_1630509239.pdf
The risk of importation of the #EbolaVirusDisease into Nigeria is HIGH.
Healthcare workers & the general public are urged to maintain a high index of suspicion.
📜Read our public health advisory for measures to prevent the importation of #EVD:
https://ncdc.gov.ng/news/423/public-health-advisory-following-declaration-of-ebola-virus-disease-outbreak-in-uganda
Based on available data, the overall risk of importation of the #EbolaVirusDisease and the impact on the health of Nigerians has been assessed as HIGH.
📜Read our public health advisory for measures to prevent the importation of #EVD:
https://ncdc.gov.ng/news/423/public-health-advisory-following-declaration-of-ebola-virus-disease-outbreak-in-uganda
#NCDCUpdate
We have published an #EbolaVirusDisease care kit for incoming travellers from a country with ongoing transmission of #Ebola.
The care kit includes guides to monitor your temperature and symptoms.
Download & share via
https://ncdc.gov.ng/themes/common/docs/protocols/300_1669297182.pdf
#StaySafeStayHealthy
Common Viral Haemorrhagic Fevers #VHFs include #LassaFever, #EbolaVirusDisease, #YellowFever, #DengueFever, #MarburgFever and #CrimeanCongoHaemorrhagicFever.
What are the #InfectionPreventionandControl practices that need to be in place in the management of VHFs?
🔗Download our National Guideline on #IPC for #VHF
https://ncdc.gov.ng/themes/common/docs/protocols/111_1579986179.pdf