Иногда бывает ситуация когда 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
#SAND/USDT analysis :
#SAND is currently in a downtrend, consistently making new lows on the daily time frame. The price is facing rejection from the resistance zone and the 200 EMA, and it is expected to test the support zone and the previous swing low. Look for a pullback to identify a potential short entry.
TF : 1D
Entry : $0.2852
Target : $0.2275
SL : $0.3253
#SAND/USDT analysis :
#SAND is currently in an uptrend, forming Higher Highs (HHs) and Higher Lows (HLs) above the 200ema. The price has broken the trendline after bouncing from a support zone. It is expected to maintain its bullish momentum and target previous highs.
TF : 30min
Entry : $0.2958
Target : $0.3076
SL : $0.2888
#SAND Market Analysis
SAND/USDT remains bearish with price hovering near the lower Bollinger Band and RSI sitting close to oversold at 33. MACD confirms downside momentum, reinforcing the weak structure below key resistances around 0.077. Bull case: hold above 0.0717 to target a retest of 0.0755 and possibly 0.0771 resistance. Bear case: lose 0.0717 and risk acceleration toward lower supports. Watch 0.0717 closely for the next directional cue.
---
➖➖➖➖➖➖➖
Bitcoin Bullets® Trading
#SAND Market Analysis
SAND/USDT is in a bearish trend with RSI deep in oversold territory and MACD confirming downside momentum. Price trades near the lower Bollinger Band, signaling potential for a short-term bounce but overall pressure remains. Bull case: hold above 0.0755 to target a retest of 0.0780 resistance. Bear case: break below 0.0755 risks continuation lower, exposing further downside below 0.071. Key level to watch: 0.0755 support.
---
➖➖➖➖➖➖➖
Bitcoin Bullets® Trading
#SAND Market Analysis
SAND/USDT shows a weak bullish structure with price hovering near the lower Bollinger Band and RSI sitting below 50, signaling limited upside momentum. MACD remains bearish, indicating sellers still have influence despite the mild uptrend. Bull case: hold above 0.0765 to target resistance at 0.0797 for a potential bounce. Bear case: lose 0.0755 and risk deeper pullback towards the next support zone. Key level to watch: 0.0765.
---
➖➖➖➖➖➖➖
Bitcoin Bullets® Trading