Иногда бывает ситуация когда 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
City of Leaves / Tech city of Healing.
80m tower as a floating roof with green garden underneath.
Sou Fujimoto won the competition to design a tower and cultural facilities in Nanchang, China.
Architecture: Sou Fujimoto
Client: China Jinmao 中国金茂
Location: Nanchang, China
Program: Culture Center, Observatory Tower and Restaurant.
#arch_shovel#architecture#SouFujimoto#architects#award#news#ArchitectureNews
STUDENT RESIDENCE AND RECERSIBLE CAR PARK.
By BRUTHER, BAUKUNST
Location: FRANCE - PLATEAU DE SACLAY
Year: 2020
Photographer: Filip Dujardin , Maxime Delvaux
#architects#design#designer#architecture#archdaily#render#interiors#arch_shovel
Eight-storey wooden building for the Nordhavn waterfront on the eastern edge of Copenhagen.
The landscape design at Marmormolen in Copenhagen revolves around a unified symbiosis of greenery on the rooftops, courtyards, inside and around the office building — which will become one of Denmark's largest timber constructions — to create a living and lush experience for employees, visitors and pedestrians.
Architecture, landscape architecture and interior design: Henning Larsen Architects in collaboration with AP Pension and Ramboll denmark.
Renders by IMIGO (1+2) and Sora (3+4).
#arch_shovel#architecture#henninglarsen#architects#denmark#copenhagen#landscapeDesign