Иногда бывает ситуация когда 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
#JASMY/USDT analysis :
#JASMY is currently in an uptrend, trading above the 200-period exponential moving average (EMA). The price is exhibiting bullish momentum and is trading above a significant support zone. The price is expected to bounce back and continue its upward trajectory, resuming the bullish momentum in the near future.
TF : 15min
Entry : $0.05107
Target : $0.05881
SL : $0.04612
#JASMY/USDT analysis :
#JASMY is currently in a downtrend, demonstrating a structure of lower lows (LLs) and lower highs (LHs) below the 200 EMA. The price has broken through the previous support zone, which has now become resistance. Therefore, it is anticipated that the price will continue its bearish momentum and potentially test lower levels. It is advisable to wait for a retest of the zone for a short entry.
TF : 4h
Entry : $0.01827
Target : $0.01601
SL : $0.01980
#JASMY/USDT analysis :
#JASMY has retested the resistance zone twice and been rejected. It's likely to keep going down soon as the price also got rejected from the 200 EMA. The previous lows will be tested.
TF : 1H
Entry : $0.02198
Target : $0.01684
SL : $0.02371