Иногда бывает ситуация когда 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
Green University hosted an official meeting between the Rector and students on the occasion of “Youth Day.”
🗣During the event, the Rector of Green University, Dr. Bakhtiyor Pulatov, spoke about the conditions created for students, ongoing efforts to further enhance the quality of education, and future plans aimed at supporting young people. Students’ proposals and initiatives were also heard, and practical measures for their implementation were discussed.
💬The meeting was attended by a representative of the Youth Affairs Agency of the Republic of Uzbekistan, Elyor Norpulatov, who provided detailed information on the priority directions of the state youth policy and the opportunities being created for young people.
The participants also discussed the content of the meeting between President Shavkat Mirziyoyev and youth, as well as the key priorities outlined during that dialogue, exchanging views on their effective implementation within the activities of higher education institutions.
👉ReadMore
#YouthDay#OpenDialogue
_____________________
Green University’da “Yoshlar kuni” munosabati bilan rektor va talabalar ishtirokida rasmiy uchrashuv bo‘lib o‘tdi.
🗣Tadbir davomida Green University rektori Professor Baxtiyor Pulatov talabalarga yaratilgan shart-sharoitlar, ta’lim sifatini yanada oshirish, yoshlarni qo‘llab-quvvatlashga qaratilgan istiqboldagi rejalar haqida so‘z yuritdi. Shuningdek, talabalar tomonidan bildirilgan taklif va tashabbuslar tinglanib, ularni amaliy qo‘llab-quvvatlash masalalari muhokama qilindi.
💬Uchrashuvda O‘zbekiston Respublikasi Yoshlar ishlari agentligi vakili Elyor Norpulatov ham ishtirok etib, yoshlarga oid davlat siyosatining ustuvor yo‘nalishlari hamda yaratilayotgan imkoniyatlar haqida ma’lumot berdi.
Shuningdek, tadbir davomida President Shavkat Mirziyoyevning yoshlar bilan o‘tkazgan uchrashuvi mazmuni va unda belgilab berilgan ustuvor vazifalar muhokama qilinib, ularning ta’lim muassasalari faoliyatida samarali amalga oshirilishi yuzasidan fikr almashildi.
👉Batafsil
#YoshlarKuni#OchiqMuloqot
✉️[email protected]
☎️ +998 55 512 00 77
📍Location
🌐Website | 📱Telegram | 📱Instagram | 📱LinkedIn | 🟥YouTube