Иногда бывает ситуация когда 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
NIDO Russia is organising an adventure trip for members to the festival Made in Khotkovo on the 6th of July 2024 & 7th of July 2024.
See new places🪧, experience new local culture, cuisine 🍲 and music 🎼.
Yurt camp 🏕, swimming 🏊♀️, deers 🦌 and local animals, folk concert/festival 🎼, food🥞, animation, bonfire🔥.
Possibility to bring tent and stay overnight.
🤠There is a dedicated tour guide
🎼Musicians areprovided a platform to perform. Spread your talent and music all around Russia. Display African culture.
It promises to be lots of fun!
If interested, please contact us +79262385618
Estimated budget: 2000 rubles. Students enjoy discounts.
You will be added to a special group chat after registration.
Deadline for registration extended to 05.07.2024 12:00🙏
https://t.me/nido_russia/1692
#adventure#Khotkovo#concert#swimming#nidorussia
NIDO Russia is organising an adventure trip for members to the festival Made in Khotkovo on the 6th of July 2024 & 7th of July 2024.
See new places🪧, experience new local culture, cuisine 🍲 and music 🎼.
Yurt camp 🏕, swimming 🏊♀️, deers 🦌 and local animals, folk concert/festival 🎼, food🥞, animation, bonfire🔥.
Possibility to bring tent and stay overnight.
🤠There is a dedicated tour guide
🎼Musicians areprovided a platform to perform. Spread your talent and music all around Russia. Display African culture.
It promises to be lots of fun!
If interested, please contact us +79262385618
Estimated budget: 2000 rubles. Students enjoy discounts.
You will be added to a special group chat after registration.
Deadline for registration 03.07.2024🙏
https://t.me/nido_russia/1669
#adventure#Khotkovo#concert#swimming#nidorussia
NIDO Russia is organising an adventure trip for members to the festival Made in Khotkovo on the 6th of July 2024 & 7th of July 2024.
See new places🪧, experience new local culture, cuisine 🍲 and music 🎼.
Yurt camp 🏕, swimming 🏊♀️, deers 🦌 and local animals, folk concert/festival 🎼, food🥞, animation, bonfire🔥.
Possibility to bring tent and stay overnight.
🤠There is a dedicated tour guide
🎼Musicians areprovided a platform to perform. Spread your talent and music all around Russia. Display African culture.
It promises to be lots of fun!
If interested, please contact us +79262385618
Estimated budget: 2000 rubles. Students enjoy discounts.
You will be added to a special group chat after registration.
Deadline for registration 03.07.2024🙏
https://t.me/nido_russia/1669
#adventure#Khotkovo#concert#swimming#nidorussia
NIDO Russia is organising an adventure trip for members to the festival Made in Khotkovo on the 6th of July 2024 & 7th of July 2024.
See new places🪧, experience new local culture, cuisine 🍲 and music 🎼.
Yurt camp 🏕, swimming 🏊♀️, deers 🦌 and local animals, folk concert/festival 🎼, food🥞, animation, bonfire🔥.
Possibility to bring tent and stay overnight.
🤠There is a dedicated tour guide
🎼Musicians areprovided a platform to perform. Spread your talent and music all around Russia. Display African culture.
It promises to be lots of fun!
If interested, please contact us +79262385618
Estimated budget: 2000 rubles. Students enjoy discounts.
You will be added to a special group chat after registration.
Deadline for registration 03.07.2024🙏
https://t.me/nido_russia/1669
#adventure#Khotkovo#concert#swimming#nidorussia
❤️😅 Memorable moments from adventure/excursion trip to Khotkovo! We all had fun and good company. The Major was in attendance and NIDO Russia was recognised for contribution to community.
Subscribe:@nido_russia
https://t.me/nido_russia/1710?single
#news#Nigeria#Russia#Khotkovo#excursion#adventure#festival#madeinkhotkovo
🍾🎉 The Mayor of Khotkovo and Sergiyev Posad Region (Dmitry Aleksandrovoch Akulov) meets NIDO Russia Chairman (Dr. Godwin Ibe) who receives an award for distinguished contribution to the community from the Director of Made in Khotkovo (Ms. Larisa Dmitrieva Rapaport) and Owner of Moscow Navigator (Ms. Irina Chulkova)
Up Nigeria Russia relations! 🇳🇬🇷🇺
Subscribe:@nido_russia
https://t.me/nido_russia/1702
#news#Nigeria#Russia#Khotkovo#excursion#adventure#festival#madeinkhotkovo