TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #9 · 7 јан.

Иногда бывает ситуация когда 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

Hashtags

Резултати

Пронајдени 1 слични објави

Пребарај: #scochairmanship

当前筛选 #scochairmanship清除筛选

ℹ Did you know that Kyrgyzstan is a founding member of Shanghai Cooperation Organization (SCO)? 🇰🇬 Along with China, Kazakhstan, Russia, Tajikistan, and Uzbekistan, we established this crucial regional platform in 2001! Now, the Kyrgyz Republic is proud to hold the prestigious Chairmanship of the Shanghai Cooperation Organization for the 2025-2026 period! We are steering the SCO agenda under the dynamic slogan: "25 Years of the SCO: Together Towards Sustainable Peace, Development, and Prosperity." This chairmanship is a testament to our commitment to regional stability and comprehensive cooperation. Follow our page for updates on high-level meetings and initiatives planned during Kyrgyzstan's Chairmanship! #Kyrgyzstan#SCOChairmanship#SCO#ShanghaiCooperationOrganization#CentralAsia#Diplomacy#RegionalCooperation LinkedIn | Instagram | X (Twitter) | Facebook | YouTube