Иногда бывает ситуация когда 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
#MBL/USDT analysis :
#MBL is currently consolidating above the support zone. The price is expected to test this zone again before moving towards the swing high. It is recommended to wait for a pullback to enter a long position.
TF : 1D
Entry : $0.002672
Target : $0.003095
SL : $0.002527
#MBL/USDT analysis :
#MBL is in an uptrend, forming higher highs (HHs) and higher lows (HLs) above the 200 EMA. The price has recently bounced back from a support zone after retracement to it. It is expected that the price will sustain its bullish momentum and test the previous swing high.
TF : 1H
Entry : $0.00256
Target : $0.00265
SL : $0.00251
#MBL/USDT analysis :
#MBL is in a downtrend, trading below the 200 EMA. The price is expected to experience a pullback and will continue its downward momentum. Wait for the price to reject from the resistance zone for short entry.
TF : 15min
Entry : $0.00211
Target : $0.00190
SL : $0.00220
Falling wedges detected on #KMD & #MBL by CoinLegs algorithm 📉
Bullish reversal ahead? Now imagine never missing this unique combo setup or dozens of other patterns again 💫
Our platform tracks every asset, all timeframes so you get alerts first 🛎️
www.coinlegs.com