Иногда бывает ситуация когда 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
#SHIB/USDT analysis :
The price of #SHIB has recently broken out of its trendline, indicating a potential bullish momentum. While a retracement to the 200 EMA is expected, the overall sentiment suggests that the price is likely to move upwards and test the swing high level.
TF : 4h
Entry : $0.00001480
Target : $0.00001734
SL : $0.00001313
#SHIB/USDT analysis :
#SHIB has successfully broken out of the trendline, demonstrating a strong bullish movement. It is anticipated that this upward momentum will continue, allowing the price to test higher levels.
TF : 1D
Entry : $0.00002536
Target : $0.00004567
SL : $0.00001827
#SHIB -%5 in 6hrs 🤑🤑
Algorithmic bots on our Discord server print us instant money.
Thanks to Hey CoinLegs signals, we were able to catch short-term signals instantly.
Join us to get access to these and many other algorithmic auto signals 👇
https://discord.gg/8RKtAA9cxZ