Иногда бывает ситуация когда 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
📰Nissan, Honda and Mitsubishi refused to collaborate into a single holding company
❌ The companies officially canceled the memorandum of merger signed in December 2024. Negotiations lasted several months, but the parties were unable to reach an agreement.
ℹ️ Honda had proposed creating a single holding company in which it would gain management control and appoint a CEO. Another option was to turn Nissan into its subsidiary. Both options Nissan found unacceptable. The companies will now continue to cooperate, but only in software and electric cars.
💰 The collaboration was supposed to help compete with Tesla and BYD. The potential holding company was valued at $50 billion.
@CarsNews
#holdings#Nissan#Honda#Mitsubishi
🚘Mitsubishi Motors to opt out of Honda-Nissan holding company
📰Mitsubishi Motors has finalized its decision not to participate in the management integration plan proposed by Honda and Nissan, citing fears of being marginalized, sources revealed on January 24.
🚘 Instead, Mitsubishi plans to remain under Nissan, its largest shareholder, while seeking ways to collaborate with both automakers.
ℹ️ Honda and Nissan are considering establishing a holding company in August 2026, with plans to delist and operate under a single umbrella. However, Mitsubishi intends to stay outside the holding company framework and maintain its position as a Nissan subsidiary, with Nissan holding just under 30% of Mitsubishi’s shares.
@CarsNews
#Mitsubishi#Nissan#Honda#holdings