Иногда бывает ситуация когда 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
CMC Price Error: Toncoin Drops to $0.27
The price of TON was shown at a level of 0.27 at times on CoinMarketCap due to a technical issue. It's removed now from Top 10.
❤️ Meanwhile, Toncoin continues to trade at $5.19 on Binance and CoinGecko.
#TON#CMC#price#Toncoin
🍦Vanilla Finance: Project Updates
Vanilla Finance announced that its TGE has been postponed to Q2 2025.
According to the team, this decision was made due to unfavorable market conditions and aims to ensure the most successful launch possible. The extra time will allow them to refine the Total Return Swap (TRS) product, which developers believe can become a cornerstone of DeFi infrastructure and unlock new income opportunities.
In preparation for the TGE, the team is also deepening cooperation with leading centralized exchanges and forming partnerships with players such as #CoinMarketCap and BNB Chain by participating in their MVB and CMC Labs programs.
🍦Mini-app
#TGE#CMC#VanillaFinance