Иногда бывает ситуация когда 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
Girls’ Meeting at Green University!
✅On October 23, a special gathering was held for our female students, focusing on etiquette, moral values, and personal growth.
🔄The event also featured a psychological training session that helped participants build confidence and strengthen communication skills.
#GreenUniversity#StudentLife#GirlsMeeting#PersonalDevelopment
✉️[email protected]
☎️ +998 55 512 00 77
📍Location
🌐Website | 📱Telegram | 📱Instagram | 📱LinkedIn | 🟥YouTube
📖Title : This Too Shall Pass
✍️Author : Julia Samuel
⭐️Rating : 3.72/5 (Goodreads)
📆Published : Mar 05, 2020
————————————————
Summary:This Too Shall Pass by Julia Samuel is a profound exploration of how humans cope with change and emotional upheaval. Drawing on her extensive experience as a psychotherapist, Samuel presents twelve moving and deeply personal case studies that cover themes such as grief, relationships, identity, and trauma. Each story reveals how people struggle with, resist, and ultimately adapt to change. Through compassionate storytelling and psychological insight, Samuel illustrates that while change is inevitable and often painful, it also offers opportunities for growth and healing. The book is a comforting, insightful guide for anyone navigating life’s unpredictable transitions and emotional challenges.
————————————————
#nonfiction#psychology#selfhelp#personaldevelopment@Bookslibraryofficial@free_novellas@the_ancient_library
Diversity & Inclusion
There is a significant relationship between competitive profit gains and diversity.
Companies with gender, ethnic and racial diversity are at least 15 percent more likely to experience above-average financial returns.
#Wednesday#Day-3
#personalDevelopment#selfhelp#leadership#Growth#Teambuild
Read 📚:- https://t.me/Think_CreativeHub
$5.4M Funding for Tenor
Tenor has raised $5.40 million on December 19, 2024. This platform enables managers to rehearse difficult conversations with realistic voice AI characters and receive instant feedback for improvement.
#Funding#AI#VoiceAI#Management#Feedback#Conversations#Tech#Startup#Investment#Training#Innovation#Leadership#Simulation#Dialogue#PersonalDevelopment#Business#Growth#Application#Software#Tenor