Иногда бывает ситуация когда 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
#JUV/USDT analysis :
#JUV is currently in a bearish trend, forming lower lows (LLs) and lower highs (LHs) below the 200 EMA. The price is expected to maintain its bearish trajectory and test lower levels from the current position.
TF : 1h
Entry : $1.033
Target : $0.914
SL : $1.105
#JUV/USDT analysis :
#JUV is forming a structure of higher highs (HHs) and higher lows (HLs). The price is expected to break out above the 200 EMA resistance and continue to rise. It is advisable to wait for the price to retest the support zone for a long entry opportunity.
TF : 2h
Entry : $1.640
Target : $1.780
SL : $1.550
#JUV/USDT analysis :
#JUV is presently being rejected from the resistance zone. The price is expected to retrace towards the 200 EMA and test it. This could potentially create a short trade opportunity on the lower time frame (LTF).
TF : 1H
Entry : $1.636
Target : $1.592
SL : $1.663
#JUV result
2 nd target achieved in just 1 days ✅✅✌
One more huge quick profit 21.2%🤑💰🤑
👉 Still thinking? The more you wait more you lose profit
☎️ Contact @MichaelStrategiesVip for membership and grab next breakout signal
#JUV result
1 st target achieved in just 21 house ✅✌
One more huge quick profit 10.3%🤑💰🤑
👉 Still thinking? The more you wait more you lose profit
☎️ Contact @MichaelStrategiesVip for membership and grab next breakout signal