Иногда бывает ситуация когда 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
TON — LIVE: Telegram Rises in Popularity Rankings
#Telegram#apps
The channel TON — LIVE reports that Telegram has moved up one rank in the list of the most popular apps for 2025.
Source: link
@tonlines
⚡️Trending Apps: New Voting System in Telegram Apps Center
#Telegram#Apps
Trending Apps announces that users can now influence the ranking of Mini Apps through a new voting system in the Telegram Apps Center. Active participants will be rewarded with exclusive SBTs and Telegram Gifts.
Source: link
@tonlines
⚡️Trending Apps: Upcoming Feature in Apps Center
#Telegram#Apps
Trending Apps announced a new feature in the Apps Center, aiming to enhance user engagement by allowing users to influence developments directly. This innovative approach is set to launch within the next 30 days, with more details to be revealed gradually.
Source: link
@tonlines
A partir de hoy amigos, estaré entregando #apps, recursos, plataformas y tips para usar la tecnología a su favor y mejorar las condiciones de #empleo📄📈