Иногда бывает ситуация когда 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
#RATS is dropping in a bearish channel on 4H time frame,we are waiting for breakup from the supply zone and ceiling of the bearish channel..✨
❄️@signals_bitcoin_crypto❄️
❄️@Shadow_support0o❄️
#RATS has falling wedge pattern on 4H Time frame,we expect it will have a good pump from the support zone in near future 💎
❄️@signals_bitcoin_crypto❄️
❄️@Shadow_support0o❄️
#RATS has a falling wedge pattern on 4H Time frame,in the case of breakup we will see huge pump again 💎
❄️@signals_bitcoin_crypto❄️
❄️@Shadow_support0o❄️
#RATS bounced back from the Trendline on 2H Time frame,we expect it will pump from here until the next level 🚀
❄️@signals_bitcoin_crypto❄️
❄️@Shadow_support0o❄️
✨ Unlock simplicity in #BRC20 transfer!
🚀Now, easily transfer your #BRC20 assets in just ONE step!
🔄 Inscribe and transfer seamlessly for a more efficient and convenient experience.
👉https://tokenpocket.pro
Ready to experience seamless #BRC20 transactions?
Follow the tutorial:
👉https://help.tokenpocket.pro/en/wallet-faq-en/btc-wallet/brc20
#Sats#ordi#RATS#Inscriptions
【Details】https://twitter.com/TokenPocket_TP/status/1737707370523005390
【Powered By】Crypto Box
🟧 TokenPocket Now Fully supports BRC-20! #BRC20
✅#BRC20 tokens deposit, withdrawal, and token price display.
✅ Transfer your #BRC20 in one single transaction (Inscribe and Transfer in one step)
🆕We just released the iOS new version 🔺2.1.9🔺(TP Wallet) and Android new version 🔺1.9.5🔺. Upgrade your TP Wallet/TokenPocket and discover the #BRC20#Inscriptions world with us!
👉https://www.tokenpocket.pro/
#Sats#ordi#RATS#Inscriptions
【Details】https://twitter.com/TokenPocket_TP/status/1736949473048420555
【Powered By】Crypto Box