Иногда бывает ситуация когда 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
🤖 Bot Downtime Update 🔧
Hey everyone,
Our bot is currently down due to a server-side issue from our hosting provider. This outage is not caused by us directly, but we’re in constant contact with the provider to ensure it gets resolved as quickly as possible.
We truly understand how frustrating this is — we’re equally affected and doing everything we can behind the scenes to bring the service back online.
🙏 Thanks for your patience and support.
We’ll keep you updated here. Please stay tuned.
#fixed✈️
Fixed an issue where @ChatNetworkBot in some cases didn't reply when it should send an invite link after the /start via deeplinking.
Thanks in helping diagnose, L.s. and C.
#fixed#ChatNetworkBot
🎈Hot Game This Week🎈
#Minecraft 1.21.92 LIVE!!
What's New?
🌟1.21.90 bugs #fixed!
Resolved a problem where adding split-screen players could disconnect users from multiplayer worlds.
🌟Visual Arts Adjusments!
Items with dimensions smaller than 16 pixels in width or height now display correctly once more.
🔗Minecraft 1.21.92 APK Patch Update
It was brought to attention that with some bots admin commands were no longer working.
That was happining for the bots migrated yesterday, because of the new bot API version.
This is #fixed now.
Thanks for letting me know, A. A.!
#BanWarnBot#RulesRulesBot#JoinCaptchaBot