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

Резултати

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

Пребарај: #stellenbosch

当前筛选 #stellenbosch清除筛选

🍇🚋 Franschhoek Wine Valley Discover the beauty of the Franschhoek Wine Valley on board the famous Wine Tram🚋 — a hop-on, hop-off experience that lets you explore at your own pace, just 75 km east of Cape Town. 🏞 With 10 different routes, every journey offers something special: ✨ world-class wine tastings 🍷 ✨ guided cellar tours 🛖 ✨ leisurely vineyard lunches 🍽 ✨ peaceful walks among the vines 🌿 The town of Franschhoek — meaning “French Corner” — is part of the Stellenbosch Municipality. Stellenbosch itself is South Africa’s second-oldest town and today stands as a vibrant center of winemaking, gastronomy, art, and culture. 🌍 #Wine#Travel#SouthAfrica#Franschhoek#Stellenbosch#CapeTown

🗓December 3 marks the birthday of Huberte Rupert (1919–2005), a South African philanthropist and art enthusiast whose legacy shaped cultural and social development in the country. 🎨💛🇿🇦 She co-founded the Rupert Museum and supported numerous initiatives in education, healthcare, and the arts. 🖼 The Rupert Museum houses a remarkable collection of modern South African art from the 1940s to the early 2000s. It is located in Stellenbosch, just 50 km east of Cape Town. Her husband, Anton Rupert, was a prominent South African businessman. #SouthAfrica#Art#Culture#Philanthropy#HuberteRupert#RupertMuseum#Stellenbosch