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

Пребарај: #noi

当前筛选 #noi清除筛选
NIDO Russia (НИДО)

@nido_russia · Post #1903 · 29.11.2024 г., 14:02

UPDATED: Okonjo-Iweala reappointed WTO director-general The World Trade Organisation (WTO) has reappointed Ngozi Okonjo-Iweala as its director-general for a second term. In a notice to journalists, the organisation said its members agreed to give Okonjo-Iweala a second term after a general council meeting today. “Her second four-year term, which was approved at a special General Council meeting, will begin on 1 September 2025,” WTO added. “DG Okonjo-Iweala took office as Director-General in March 2021 and is the first African and the first woman to serve as head of the organization.” The announcement came more than a month after 58 member countries supported a proposal from the African Group of WTO for her to head the organisation for another term. #news#world#russia#nido_russia#wto#noi https://t.me/nido_russia