Иногда бывает ситуация когда 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
#PIVX👈
https://www.binance.com/en/trade/PIVX_BTC
Buying Zone 120-130
Sell
🤑 140- 160
🚀 160- 180
💃 180-200
🚀🚀200-220 & above
Bullish above- 115🔼
Death Zone below-115🔽
hold coin only in bullzone ✅
#PIVX👈✨
Call given here
Hit 184
Target1 to 3 ✔️✅
60% safe profit on spot
If you invested 1 btc it's now 1.6 btc now 🤑🤑✨
Signal before pump @ low level
Always trade with us for max profit 😊🤑💃
We are best pump tracker 🤑
🟩🟩🟩🟩🟩🟩🟩🟩
#PIVX repeating history of dip and forming double bottom 💥
A green candle from here will make it x multiple times💸
Tech specifications
Bullish above 300🔼
Death Zone below 300🔽
Confirmation signal a green candle crossing 325 🔼
#PIVX result
3 target achieved in just 31 minutes ✅✅✅
One more huge quick profit 15%🤑💰🤑
👉 Still thinking? The more you wait more you lose profit
☎️ Contact @FutureExpertAdmin for membership and grab next breakout signal