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 слични објави

Пребарај: #landscapeandarchitecture

当前筛选 #landscapeandarchitecture清除筛选

Rambla Climate-House. "The Rambla Climate-House works as a climatic and ecological device. It is part of a series of associative initiatives, developed at the scale of independent citizens, to contribute to reparations for the environmental and climate damage caused by over urbanization in Molina de Segura. The Rambla Climate-House collects pooled rainfall from its roofs and greywater from its showers and sinks to spray onto the Rambla's remains and regenerate their former ecologic and climatic constitution. The house is organized around this elliptical section of rambla, as an observatory in alliance to this reconstructed landscape and as a sequence of interconnected spaces of different widths." (c) Architecture: Andrés Jaque / Office for Political Innovation, Miguel Mesa del Castillo Photography: José Hevia 2021 #ArchDaily#house#houses#landscaping#landscapeandarchitecture#arch_shovel