Иногда бывает ситуация когда 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
A whale has bought 4,000 $ETH worth of $8.54M from #Deribit https://intel.arkm.com/explorer/address/0xeCE7c053131398A88850f52f215D4D60E38F46c5 https://x.com/OnchainLens/status/2039280431137517687 Follow @onchainlens for more onchain updates
A whale has bought 4,000 $ETH worth of $8.54M from #Deribit
https://intel.arkm.com/explorer/address/0xeCE7c053131398A88850f52f215D4D60E38F46c5
https://x.com/OnchainLens/status/2039280431137517687
Follow @onchainlens for more onchain updates
Major BTC Transfer from Robinhood
🚨 A significant transfer of 952 #BTC (valued at $91,733,738) has been made from #Robinhood to an unknown wallet, according to Whale Alert. Details can be viewed here.
Additionally, the crypto exchange Deribit is attracting interest from potential acquirers, as reported by Bloomberg. For more, see the full article.
#BTC#Robinhood#Crypto#Deribit#Finance#WhaleAlert#DeFi#Acquisition#Options
Deribit Attracts Potential Acquirers Attention
Crypto exchange Deribit is drawing interest from potential acquirers, signaling a shift in the M&A landscape for crypto platforms. This comes amid regulatory scrutiny and evolving market conditions. For more details, check the full article here: BBG.
#Crypto#Deribit#Investment#Acquisition#Exchange#Mergers#MarketTrends#Finance#Regulation#Tokens#Trading#DigitalAssets#GlobalFinance#VentureCapital#Tech#Cryptocurrency