Иногда бывает ситуация когда 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
🚀#LOScoin is excited to announce that we have successfully completed $2 million in funding!
In this round of financing, Solana Foundation led the investment, and CMS Holdings, Impossible Finance, Yield Guild Games (YGG) and Monad and other well-known institutions followed the investment, helping LOScoin build a more powerful and interactive Web3 gaming social ecosystem 2.0
$LOS This round of financing also received strong support from @AI_mint__ CEO Keone Hon, further confirming our innovation and leadership in the Web3 gaming field.
🚀#LOScoin is excited to announce that we have successfully completed $2 million in funding!
In this round of financing, Solana Foundation led the investment, and CMS Holdings, Impossible Finance, Yield Guild Games (YGG) and Monad and other well-known institutions followed the investment, helping LOScoin build a more powerful and interactive Web3 gaming social ecosystem 2.0
$LOS This round of financing also received strong support from @AI_mint__ CEO Keone Hon, further confirming our innovation and leadership in the Web3 gaming field.
🚨📌🔗
🤑
🤙
🤙
🤙
🤙
🤙
🤙
🤑
🤑
It's time to show the unity and strength of the #LOScoin community
Vote for #LOScoin and accomplish great things
X: https://x.com/anndylian/status/1847137465762758958
🚨 Reminder: Remember to claim your referral income and game rewards every day!
🤙
🧐
😎
If you miss it, they will be burned after 24 hours
🤑
🤑
🤑
#LOScoin
🤑
🖤https://x.com/losgamecoin/status/1830543753670713509?s=46