Иногда бывает ситуация когда 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
#MBOX/USDT analysis :
#MBOX is currently in a downtrend, trading below the 200 EMA. The price has been rejected from the resistance zone and broken below the trendline. It is expected to decline further and test the swing low.
TF : 2h
Entry : $0.0845
Target : $0.0756
SL : $0.0900
#MBOX/USDT analysis :
#MBOX is in a downtrend, consistently making lower lows (LLs) and lower highs (LHs) below the 200 EMA. Currently, the price is retracing towards the 200 EMA and a resistance zone. It is anticipated that the price will test this zone before reverting back to continue its bearish momentum, potentially reaching lower levels.
TF : 4h
Entry : $0.1865
Target : $0.1566
SL : $0.2037
#MBOX/USDT analysis :
#Mbox is currently in a downtrend, trading below the 200 EMA. The price is forming a structure of lower lows and lower highs. It is facing rejection from the resistance zone, which suggests a potential reversal that could reinforce its bearish trend and test previous lows.
TF : 15min
Entry : $0.1332
Target : $0.1269
SL : $0.1366