Иногда бывает ситуация когда 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
#POWR/USDT analysis :
#POWR has successfully broken above the trendline and is anticipated to continue its upward movement, with the potential to test previous highs. This breakout signals a bullish trend, suggesting further price appreciation in the near term.
TF : 1D
Entry : $0.3090
Target : $0.4500
SL : $0.2270
#POWR/USDT analysis :
#POWR is currently in an uptrend, trading above the 200 EMA. The price has bounced back from the support zone with strong volume. As a result, we can expect the price to maintain its bullish momentum and test higher levels.
TF : 2H
Entry : $0.3500
Target : $0.4200
SL : $0.3022
#POWR/USDT analysis :
#POWR is in a correction phase and has recently tested the resistance zone near the 200 EMA. The price is anticipated to be rejected from there and continue its downward direction. Wait for the break of the $0.1936 level for entry.
TF : 4H
Entry : $0.1936
Target : $0.1751
SL : $0.2058
#POWR👈
https://www.binance.com/en/trade/POWR_BTC
Buy at current 320-335
Highly pumpable Coin on the brink of 🚀
Buy in parts 👈strictly follow for max profits as its pump coin
Sell
🤑360-380
🤑380-410
🤑 410-440
🤑 440-470
🚀 470- 500 & above
Bullish above -300
#POWR👈
https://www.binance.com/en/trade/POWR_BTC
Buy at current 485-495
Highly pumpable Coin on the brink of 🚀
Buy in parts 👈strictly follow for max profits as its pump coin
Sell
🤑520-550
🤑 550-600
🤑 600-650
🤑 650-700
🚀 700- 750 & above
Bullish above -470
#POWR👈
https://www.binance.com/en/trade/POWR_BTC
Buy at current 525-540
Highly pumpable Coin on the brink of 🚀
Buy in parts 👈strictly follow for max profits as its pump coin
Sell
🤑 570-600
🤑 600-650
🤑 650-700
🚀 700- 750 & above
Bullish above -510
#POWR👈
https://www.binance.com/en/trade/POWR_BTC
Buy at current 605-610
Highly pumpable Coin on the brink of 🚀
Buy in parts 👈strictly follow for max profits as its pump coin
Sell
🤑 640-670
🤑 670-730
🤑 730-790
🚀 790- 850 & above
Stop Loss/Exit -590