Иногда бывает ситуация когда 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
Halloween Weekend Grind Never Dies! 💀📈
Even when the market’s sleeping, real traders stay awake — dreaming big, planning moves, and leveling up. ⚡
Tonight’s vibe:
No fear, no FOMO — just fun, freedom & future goals. 🍾🔥
When Monday hits, we rise again — sharper, smarter & ready to haunt those charts! 👻
📈
#TraderMindset#BinaryOptions#realbinaryoptionss
🚀WEEKEND MODE: PREPARE TO DOMINATE!🔥🚀
Champions don’t rest… they prepare. 💪📈
While others relax, real traders level up.
📊 Study the charts
🧠 Improve your strategy
🔍 Analyze your mistakes
🎯 Plan for next week
Remember —
Next week’s profits are built on this weekend’s preparation 💸
Discipline + Patience = Big Wins 🏆
If you’re serious about success, weekends are your secret weapon.
Drop in the comments 👇
“READY TO WIN 💥”
We don’t depend on luck.
We trade with skill. 🔥
#WeekendVibes#TraderMindset#BinaryOptions#StayFocused