Иногда бывает ситуация когда 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
#RVN/USDT analysis :
#RVN is in a downtrend, making new lows and trading below the 200 EMA. The price is currently retesting a previously respected support zone. It is expected to decline from this level and continue the downtrend, with previous lows will be tested again.
TF : 4h
Entry : $0.01770
Target : $0.01596
SL : $0.01893
#RVN/USDT analysis :
#RVN has broken out of the previous swing high resistance zone and the 200 EMA. It is currently consolidating above these levels. The price is anticipated to sustain its bullish momentum and potentially reach new highs.
TF : 2H
Entry : $0.01745
Target : $0.01942
SL : $0.01618
#RVN/USDT analysis -
#RVN has broken down and retested the resistance zone. It's now set to keep going down and try new lows. The previous support is expected to be tested.
TF : 2H
Entry : $0.01770
Target : $0.01630
SL : $0.01845
#RVN/USDT analysis -
#RVN is in a downtrend, hitting new lows while trading below the 200 EMA. The price is currently rejecting from the resistance zone and is expected to decline from there, continuing its bearish momentum. Wait for a pullback near the resistance zone for a short entry. Aim for the previous swing low as your target level.
TF : 1H
Entry : $0.0206
Target : $0.0187
SL : $0.0220
#RVN up 4,030% - Absolutely incredible🔥
💰A nice
4️⃣
0️⃣
🔠 return from this single Signal⭐
While others take massive losses trading spot, only making money when prices go up - we win big with futures profiting even when market goes down. That's the difference between smart investing and bad decisions 🏝
If you want the best, this is your chance
🔥BULL MARKET SALE IS LIVE🔥
The market is heating up, and we are at the peak of the year. It looks like more big days are ahead. Let's keep riding this wave, it's going to be absolutely insane!💯
DM me now to start!👇
http://t.me/Kevindexter
#RVN rejected from the Trendline on Weekly time frame,in the case of correction we can buy it again at Weekly Demand zone,send it💫
❄️@signals_bitcoin_crypto❄️
❄️@Shadow_support0o❄️