Иногда бывает ситуация когда 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
#WOO/USDT analysis :
#WOO is currently trading within a channel, and a retracement to the 200 EMA is pending. The price is likely to move upward and test the previous swing high resistance, with expectations for continued upward movement.
TF : 1D
Entry : $0.1629
Target : $0.2186
SL : $0.1469
#WOO Failure Swing Detection 👇
The chart fully and automatically generated by our algorithm.
All drawings are based on only mathematical values and calculations instead of emotions.
Interested?
www.coinlegs.com
#WOO bounced back from the Weekly Trendline and now hitted the Supply zone,in the case of breakout we will see another pump.🚀
otherwise wait to see the price reaction to the trendline again.👀
❄️@signals_bitcoin_crypto❄️
❄️@Shadow_support0o❄️
#WOO/USDT UPDATE:
#WOO is now trading around 0.45$. #WOO has broken down of a bear flag on hourly time frame. Now the Possible scenario is according to the pattern, we can see 10-20% dump in this. Keep eye on it 👀Stay tuned with us for further updates✔️
#WOO/USDT UPDATE:
#WOO is now trading around 0.454$. $WOO has formed a bear flag pattern on the hourly time frame. So the Possible scenario is If the price dumps and breaks down the pattern, we can see a dump in it. Keep eye on it👀. Stay tuned with us for further updates✔️