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

Пребарај: #condenasttraveller

当前筛选 #condenasttraveller清除筛选

🇿🇦Cape Town — the world food capital of 2025! 🍽🌍 🥇 In 2024, Cape Town topped the ranking of the best cities in the world for gastronomic tourism by Condé Nast Traveller. 🍣 In 2025, the city is again in the world’s top 10 for food, coming second to Tokyo, while remaining the only representative of South Africa among the leaders 🥂 🌅 According to Time Out, Cape Town is also recognized as the best city in the world 2025, for its food, vibrant atmosphere, stunning views, and the happiness of residents and visitors. 🍷 From fresh seafood to African-inspired culinary masterpieces — Cape Town is a must-visit destination in 2025! #CapeTown#SouthAfrica#GastronomicTourism#Foodie#Travel#WorldCuisine#CondeNastTraveller#TimeOut#Africa