Иногда бывает ситуация когда 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
#ALPINE/USDT analysis :
#ALPINE is currently in a downtrend, trading below the 200 Exponential Moving Average (EMA) and making new lows. The price is expected to continue its bearish momentum and test lower levels. For a short entry, wait for the price to test the zone and resume its bearish momentum.
TF : 4H
Entry : $0.923
Target : $0.819
SL : $0.991
#ALPINE/USDT analysis :
#ALPINE is in a downtrend, trading below the 200 EMA. The price is currently facing rejection from the resistance zone and is expected to continue its downward movement. look for retracement to enter short positions.
TF : 4H
Entry : $1.094
Target : $0.917
SL : $1.202
#ALPINE/USDT analysis -
#ALPINE is in a downtrend. It is currently experiencing a pullback while finding support over the trendline. Wait for the price to break the trendline for a short entry as the price is expected to face resistance from the 200 EMA and continue its bearish momentum.
TF : 1H
Entry : $1.055
Target : $0.927
SL : $1.124