Иногда бывает ситуация когда 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
#TFUEL/USDT analysis :
#TFUEL is currently forming a symmetrical triangle pattern on the monthly timeframe. The price is showing strong volume, indicating that a breakout from this pattern is likely to occur soon that can continue its upward momentum and test higher levels. A potential gain of around +620% is anticipated from the current level.
TF : 1M
Entry : $0.09330
Target : $0.67520
SL : $0.06149
#TFUEL/USDT analysis :
#TFUEL has bounce back from the support zone and break above the trendline. Price is expected to continue its bullish momentum and test previous highs.
TF : 4h
Entry : $0.06237
Target : $0.06954
SL : $0.05766
#TFUEL/USDT analysis :
#TFUEL is currently consolidating sideways near the resistance zone. The price is unable to break the zone upside and facing resistance. It's expected that the price will continue its bearish momentum from the current zone to test the previous swing low.
TF : 4H
Entry : $0.05740
Target : $0.04363
SL : $0.06297
#TFUEL/USDT analysis -
#TFUEL is in a downtrend on the HTF. The price is expected to continue its momentum, and previous lows will be tested. Before entering a short position, wait for a retracement for entry.
TF : 4H
Entry : $0.06791
Target : $0.06011
SL : $0.07132
#Tfuel Falling Wedge Breakout Has Confirmed Overall Consolidating In Symmetrical Triangle Expecting Move Towards In Descending Trendline In Coming Days And Once Trendline Got Cleared Can Easily Test 0.30$ In Midterm