Иногда бывает ситуация когда 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
#TLM/USDT analysis :
#TLM has successfully broken out and retested the previous swing high level. The price is expected to rebound from this point and test the previous highs again.
TF : 1W
Entry : $0.01480
Target : $0.02400/$0.03260
SL : $0.01067
#TLM/USDT analysis :
#TLM is on the upswing, creating higher highs (HHs) and higher lows (HLs) above the 200-period exponential moving average (200 EMA). Currently, the price is undergoing a corrective pullback. It's probable that it will test the support zone and then rebound from there to sustain its bullish momentum and aim to revisit previous highs.
TF : 1h
Entry : $0.01160
Target : $0.01209
SL : $0.01128
#TLM/USDT analysis :
#TLM is presently in an uptrend, forming higher highs (HHs) and higher lows (HLs). The price is currently trading above the support zone and is projected to rebound from there to sustain its bullish momentum and retest previous highs.
TF : 1h
Entry : $0.01093
Target : $0.01144
SL : $0.01056