Иногда бывает ситуация когда 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
🔓 Want to be eligible for the NodeGo TGE?
It’s simple:
✅ Connect your wallet
✅ Complete verification
This unlocks:
🎁 Mystery Box rewards
💸 Referral bonuses
🪙 $GO token airdrop eligibility at TGE
👉Join Airdrop
https://t.me/CentralChanel/16790
Real rewards. Real users only.
app.nodego.ai/rewards
#NodeGoAI#TGE#Web3Rewards
🚀SingSing New Launchpool is coming!🚀
New pool, new rewards, and endless opportunities! 🎉
✨Hold your $SING tight and get ready to dive in. Big rewards await! 💎
If you want more $SING, easily buy at:
- BingX: https://bingx.com/en/spot/SINGUSDT/
- CoinEx: https://www.coinex.com/en/exchange/sing-usdt
- SingSing Mini App: https://t.me/SingSing_TG_bot/app?startapp=_wallet
- OKX Wallet: Guideline
#SingSing#Launchpool#HoldSING#Web3Rewards
🔥Airdrop - Bluefin x OKX Cryptopedia ✅
💰Total Reward: $605,000+ worth of tokens — including $550K in BLUE + $55K in SUI — up for grabs through Cryptopedia Season 38
☀️Airdrop Link :- Click Here
⚙️How to Participate?
♦️Connect your OKX Wallet (SUI Network)
♦️Complete all tasks within the Bluefin campaign on Cryptopedia
♦️Verify your actions to be eligible
♦️Tasks are simple and interactive — don’t miss out
🎁Eligible participants will earn a share of 605,000 USDT in token rewards
📆Campaign Ends: 6 September 2025 – 7:00 AM UTC
📌Explore DApps, complete missions, and earn rewards this is Web3 made fun and rewarding
🔗 Source: https://x.com/wallet/status/1943597905996034069
®Note - Please do your own research (DYOR) before joining to any airdrops project, also airdrop is 100% free. Don't send any fee or penny for receiving airdrop tokens required
#OKX#Bluefin#Cryptopedia#Airdropcomic#Web3Rewards