Иногда бывает ситуация когда 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
Our #LassaFever situation report for week 1, 2025 has been published.
54 cases have been confirmed and 10 deaths have been recorded across 6 states in Nigeria.
🔗Download, read, and share via https://ncdc.gov.ng/ncdc.gov.ng/themes/common/files/sitreps/1bded1685f8dc4961a169a274be138c2.pdf
Our #LassaFever situation reports for weeks 42, 2024 have been published.
The weekly report provides a summary of the #LassaFever epidemiological situation and response activities in Nigeria.
🔗Download, read, and share via
https://ncdc.gov.ng/diseases/sitreps/?cat=5&name=An%20update%20of%20Lassa%20fever%20outbreak%20in%20Nigeria
Our #LassaFever situation report for week 40, 2024 has been published.
1025 cases have been confirmed and 174 deaths have been recorded across 28 states in Nigeria.
🔗Download, read, and share via
https://ncdc.gov.ng/diseases/sitreps/?cat=5&name=An%20update%20of%20Lassa%20fever%20outbreak%20in%20Nigeria
Our latest #LassaFever situation report shows that 982 confirmed cases and 168 deaths have been recorded in 2024.
This loss of lives is not just a number but a significant loss of a family member, friend, colleague or a seasoned healthcare worker
CEPI vaccines writes on the critical need for a #LassaFever vaccine to control this disease.
🔗
https://cepi.net/lassa-vaccine-urgently-needed-save-thousands-lives
Situation report: https://ncdc.gov.ng/diseases/sitreps/?cat=5&name=An%20update%20of%20Lassa%20fever%20outbreak%20in%20Nigeria
We have published our latest #LassaFever epidemiology data.
Here you can find a summary of all the latest figures in our weekly infographic.🔽
The full report can be accessed via
🔗https://ncdc.gov.ng/diseases/sitreps/?cat=5&name=An%20update%20of%20Lassa%20fever%20outbreak%20in%20Nigeria
Our #LassaFever situation report for week 32, 2024 has been published.
The weekly report provides a summary of the #LassaFever epidemiological situation and response activities in Nigeria.
🔗Download, read, and share via
https://ncdc.gov.ng/diseases/sitreps/?cat=5&name=An%20update%20of%20Lassa%20fever%20outbreak%20in%20Nigeria
Our #LassaFever situation report for week 30, 2024 has been published.
The weekly report provides a summary of the #LassaFever epidemiological situation and response activities in Nigeria.
🔗Download, read, and share via
https://ncdc.gov.ng/diseases/sitreps/?cat=5&name=An%20update%20of%20Lassa%20fever%20outbreak%20in%20Nigeria
Our #LassaFever situation reports for weeks 28 and 29, 2024 have been published.
The weekly report provides a summary of the #LassaFever epidemiological situation and response activities in Nigeria.
🔗Download, read, and share via
https://ncdc.gov.ng/diseases/sitreps/?cat=5&name=An%20update%20of%20Lassa%20fever%20outbreak%20in%20Nigeria
Our #LassaFever situation report for week 25, 2024 has been published.
The weekly report provides a summary of the #LassaFever epidemiological situation and response activities in Nigeria.
🔗Download, read, and share via
https://ncdc.gov.ng/diseases/sitreps/?cat=5&name=An%20update%20of%20Lassa%20fever%20outbreak%20in%20Nigeria
Our #LassaFever situation report for week 24, 2024 has been published.
The weekly report provides a summary of the #LassaFever epidemiological situation and response activities in Nigeria.
🔗Download, read, and share via
https://ncdc.gov.ng/diseases/sitreps/?cat=5&name=An%20update%20of%20Lassa%20fever%20outbreak%20in%20Nigeria
Our #LassaFever situation report for week 23, 2024 has been published.
The weekly report provides a summary of the #LassaFever epidemiological situation and response activities in Nigeria.
🔗Download, read, and share via
https://ncdc.gov.ng/diseases/sitreps/?cat=5&name=An%20update%20of%20Lassa%20fever%20outbreak%20in%20Nigeria
Our #LassaFever situation report for week 21, 2024 has been published.
The weekly report provides a summary of the #LassaFever epidemiological situation and response activities in Nigeria.
🔗Download, read, and share via
https://ncdc.gov.ng/diseases/sitreps/?cat=5&name=An%20update%20of%20Lassa%20fever%20outbreak%20in%20Nigeria