Иногда бывает ситуация когда 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
#XVS/USDT analysis :
#XVS has broken out above the 200 EMA and the previous swing high, exhibiting strong bullish momentum. The price is currently retracing and testing the support zone along with the 200 EMA. It is expected to retest this area and rebound, continuing its bullish momentum towards testing the swing high level.
TF : 4H
Entry : $7.60
Target : $9.33
SL : $6.84
#XVS/USDT analysis :
#XVS is in an uptrend, trading above the 200 EMA and consolidating over the support zone. The price is expected to bounce back from the support zone and test the previous highs.
TF : 4H
Entry : $7.42
Target : $8.05
SL : $7.00
#XVS/USDT analysis :
#XVS has recently broken out of the ascending triangle pattern on the LTF. Price is trading above the 200 EMA. It is expected to continue its bullish momentum and test previous swing highs.
TF : 2H
Entry : $6.98
Target : $7.59
SL : $6.64
#xvs
😭 Джастин Сан продал 621k XVS (Venus) за $1,95m с убытком ~$5,63m (-74%).
В январе 2024 года основатель Tron купил эти токены за $7,58m.
Ранее: атака на Venus
Crypto Headlines