Иногда бывает ситуация когда 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
#BIFI/USDT analysis :
#BIFI is currently experiencing a bearish trend, trading below the 200 Exponential Moving Average (EMA). The price is approaching the resistance zone, coinciding with the 200 EMA, and is anticipated to test this level. It is expected to reverse from this point, resuming the bearish momentum and targeting the swing low level.
TF : 2H
Entry : $192
Target : $161
SL : $208
#BIFI/USDT analysis :
#BIFI is in a downtrend, creating new lower lows and lower highs below the 200 EMA. Currently testing a resistance zone, a rejection is anticipated, which will lead to a decline towards the swing low level.
TF : 4h
Entry : $254
Target : $216.7
SL : $274
#BIFI/USDT analysis :
#BIFI has broken and retested the resistance zone, which was formerly a support level. The next expected move is to test the resistance zone and subsequently resume its bearish momentum to revisit previous lows.
TF : 1h
Entry : $281.6
Target : $262.9
SL : $293.3
#BIFI/USDT analysis :
#BIFI has breached previous support zone and is currently trading below it. The price is anticipated to persist in its bearish structure and test prior lows.
TF : 2h
Entry : $307.4
Target : $282.6
SL : $324
Our algorithm detected ascending triangle at #BIFI (4h) chart 👀
Normally, an upside breakout is expected in this triangle type, but indicators give us mixed signals 🤔
Therefore, it would be logical to wait for a directional breakout and then open a position.
Targets are on the chart.
#ZIL LONG
▪Вход ZIL : 0.0225$
▪Тейк: буду обновлять.
#BIFI LONG
▪Вход BIFI : 380$
▪Тейк: буду обновлять.
пс: учитываем, что это альткоины... торгуем соблюдая риски.
LINK - Maximus Trade|TWITTER