Иногда бывает ситуация когда 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
#RARE/USDT analysis :
#RARE is currently in an uptrend, trading above its 200 Exponential Moving Average (EMA). The price is currently testing the support zone and the 200 EMA. It is expected that the price will bounce back from these levels and will test the swing high. For a long entry opportunity, consider waiting for the price to break above the $0.0930 level.
TF : 2h
Entry : $0.0930
Target : $0.1250
SL : $0.0792
#RARE/USDT analysis :
#RARE is currently undergoing a corrective pullback, anticipated to test the 200 EMA before resuming its bearish momentum. This situation creates a potential long trade opportunity on lower time frame (LTF).
TF : 1h
Entry : $0.0692
Target : $0.0802
SL : $0.0634
#RARE/USDT analysis :
#RARE has broken above the trendline after consolidating in a support zone, indicating a bullish shift. The price is expected to bounce off this zone and rise, testing previous swing highs.
TF : 1D
Entry : $0.1330
Target : $0.2960
SL : $0.0923