Иногда бывает ситуация когда 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
📊#XVG – POSITION UPDATE
Placed initial bids in the $0.0076 – $0.0078 zone.
This area is acting as a key decision level.
If the weekly candle closes above $0.0078, it would mark the first confirmed breakout since 2024.
In that case, continuation setups will be considered.
Until then, patience matters.
#XVG/USDT analysis :
#XVG is currently consolidating sideways. The price has tested and held support. A rebound from this support level is anticipated, with the target being the resistance level.
TF : 4h
Entry : $0.005600
Target : $0.007415
SL : $0.004360
✅✅ 27% Profit on #XVG/USDT for our Premium Members on Binance Futures, ByBit USDT, KuCoin Futures, OKX Futures
👁🗨Contact @primemod to enter the Premium Group & make daily profit on SPOT & FUTURES Signals