Иногда бывает ситуация когда 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
In a situation where the market is not in a good condition, #TRXUSDT's trend is still upward.
After reaching the bottom of the channel and the support level of $0.1100-0.1050, the price started to grow and first broke the small dynamic resistance.
According to the general situation of this currency and the registered candles, it can be expected that the price will grow again up to the ceiling of the channel.
Signal for a futures trade
#TRXUSDT.P
📌 Logged into SHORT
Entry: ±$0.08521
Take profit: $0.084; $0.082; $0.0805
Stop loss: $0.0867
The price broke through the trend support and left the bottom. Also against the downside is a “flat-bottomed triangle” formation. I expect the decline to continue.