Иногда бывает ситуация когда 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
🇩🇪🇸🇾 Il cancelliere Friedrich #Merz ha incontrato il presidente siriano Ahmed #AlSharaa, dichiarando che #Germania e #Siria collaboreranno per il rimpatrio di centinaia di migliaia di rifugiati siriani, i quali "avranno un ruolo importante nella ricostruzione del loro Paese". L’incontro ha suscitato critiche da parte di alcune comunità siriane che temono un’accelerazione dei rimpatri post-guerra a scapito delle minoranze.
@UltimoraPolitics24
📰 Syria’s New Iron Pact: Kurds Fold Into Assad’s Army
Syria’s new government and the Kurdish-led SDF have cut a deal: the SDF will fold into the national army, giving up its autonomy in exchange for staying in the country’s power structure.
The agreement, announced Friday after intense clashes between the two sides, creates a new Syrian military division made up of three SDF‑trained brigades, plus a separate brigade for Kurdish fighters in Kobani, according to SDF and government sources. Kurdish‑led civil institutions in the northeast will now be integrated into the central government.
In practice, this means the end of the de facto Kurdish state that, at its height, controlled about a quarter of Syrian territory and its oil and gas fields. Government forces will now move into the Kurdish-held cities of Hasaka and Qamishli, where they had long been barred from entering.
The deal is the result of pressure, not goodwill. After months of stalled talks, Syria’s new President Ahmed al‑Sharaa launched a military offensive into Kurdish territory, capturing a large part of the northeast, at a time when the U.S. had already withdrawn its political and military support for the SDF, analysts say.
Without Washington in their corner, SDF chief Mazloum Abdi agreed to let his forces be absorbed into the new Syrian army, in a deal Washington now hails as a “profound and historic milestone” toward national reconciliation and stability.
The U.S. has long seen the SDF as its main ally in Syria against ISIS; now, it is actively facilitating the group’s integration into the central state, not as an independent power, but as a component of the new regime.
The SDF traded its guns and governance for a place at the table, but the exact boundaries of Kurdish rights and representation remain vague. The real question is whether this is a ceasefire, or just the first stage of full assimilation.
As the banners change and the lines redraw, the calculation is brutal and clear: Better to rule from within the regime than die alone against it.
#Syria#Kurds#SDF#AlSharaa#MiddleEast
📱American Оbserver - Stay up to date on all important events
🇺🇸