Иногда бывает ситуация когда 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
📣 Open Call: Entertainment & Creative Economy Startups!
Plug and Play Central Asia & IT Park Uzbekistan are launching Batch 6! We are looking for global innovators ready to scale.
We are seeking solutions in:
🎮 GameDev
👓 Immersive Tech (AR/VR, Metaverse 2.0, Content Monetization & Video Editing)
✈️ Travel & Tourism
Why join?
✨ Potential investment from IT Park Ventures
✨ Access to Silicon Valley via our GOAL Program
✨ Expert mentorship & global corporate network
✨ Pitch at the Batch 6 Expo in May 2026
📅 Deadline: January 15, 2026
🔗Apply here: https://www.plugandplaytechcenter.com/locations/uzbekistan
Let’s build the future together! 🚀
#PlugAndPlayCA#Startups#CreativeEconomy#GameDev#TravelTech#Uzbekistan
📣 Open Call: Enterprise & AI Startups — Your Moment Is Now!
🚀 Plug and Play Central Asia, in partnership with IT Park Uzbekistan, is on the lookout for high-potential startups from Central Asia and around the globe to join Batch 5 of Plug and Play Tech Center Accelerator Program in Uzbekistan.
Who should apply?
✔️ International startups ready to expand into Central Asia and establish a footprint in Uzbekistan
✔️ Homegrown Uzbekistan-based startups looking to scale fast with world-class support
✔️ High-growth startups with real traction and global ambition
What’s in it for you?
✔️ Expert mentorship and hands-on support from Plug and Play's global network
✔️ Investment opportunities and warm intros to VCs
✔️ Exclusive access to pitch at our Expo in front of corporates and investors
✔️ Practical workshops and pitch training sessions
✔️ The chance to join Plug and Play Tech Center GOAL Program in Silicon Valley and visit other locations
IT Park Ventures will review all participating startups for investment - supporting international startups considering entering Uzbekistan and helping local founders scale worldwide.
Applications are open here:link
🗓 Deadline to apply: July 15, 2025
🟢 Selected startups will be announced in August. The program kicks off in early October.
Apply now and let’s build the future together!
#PNPTC#PlugAndPlayCA#Uzbekistan#Accelerator#Batch5#OpenCall#ITPark
📣 Open Call: Enterprise & AI Startups — Your Moment Is Now!
🚀 Plug and Play Central Asia, in partnership with IT Park Uzbekistan, is on the lookout for high-potential startups from Central Asia and around the globe to join Batch 5 of Plug and Play Tech Center Accelerator Program in Uzbekistan.
Who should apply?
✔️ International startups ready to expand into Central Asia and establish a footprint in Uzbekistan
✔️ Homegrown Uzbekistan-based startups looking to scale fast with world-class support
✔️ High-growth startups with real traction and global ambition
What’s in it for you?
✔️ Expert mentorship and hands-on support from Plug and Play's global network
✔️ Investment opportunities and warm intros to VCs
✔️ Exclusive access to pitch at our Expo in front of corporates and investors
✔️ Practical workshops and pitch training sessions
✔️ The chance to join Plug and Play Tech Center GOAL Program in Silicon Valley and visit other locations
IT Park Ventures will review all participating startups for investment - supporting international startups considering entering Uzbekistan and helping local founders scale worldwide.
Applications are open here:link
🗓 Deadline to apply: July 15, 2025
🟢 Selected startups will be announced in August. The program kicks off in early October.
Apply now and let’s build the future together!
#PNPTC#PlugAndPlayCA#Uzbekistan#Accelerator#Batch5#OpenCall#ITPark