Иногда бывает ситуация когда 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
Democratic Simret Tigray Gets Official Recognition From Electoral Board. Read more.
https://borkena.com/2025/12/10/ethiopia-democratic-simret-tigray-gets-official-recognition-from-electoral-board/#Ethiopia#news#Simret
News update: #Tigray Democratic Solidarity rejects HoF decision, threatens to boycott elections and similar ‘illegal acts’ if unresolved
Tigray Democratic Solidarity (#Simret) has called on the House of #Federation (HoF) to reconsider its decision to remove electoral constituencies in districts previously under the Tigray region administration, describing the move as “unconstitutional” and warning that it undermines Ethiopia’s federal system.
In a letter addressed to both the House of Federation and the National Election Board of Ethiopia (#NEBE), Simret said the decision constitutes an act that “undermines the country’s constitutional order, crushes institutional independence, and effectively declares ‘constitutional anarchy’.”
Citing Article 62 of the FDRE Constitution, the party argued that the House of Federation’s powers are limited to constitutional interpretation & the resolution of regional boundary disputes.
Simret further argued that boundary...
Read more: https://addisstandard.com/?p=55350
News: Simret withdraws lawsuit challenging #NEBE decision on five #Tigray constituencies; Getachew Reda says dispute requires political resolution
The Tigray Democratic Solidarity (#Simret) party has withdrawn its lawsuit challenging a decision by the National Election Board of #Ethiopia (NEBE) concerning five electoral constituencies in Tigray, party leader #Getachew_Reda confirmed to Addis Standard today.
Getachew, who is also Advisor to the Ethiopian Pm, said the party submitted a formal request to the Federal High Court seeking to discontinue the case, arguing that documents presented during earlier proceedings showed that what had been described as a decision of the House of Federation did not constitute a formal institutional ruling made through constitutional procedures.
According to him, the document produced in court indicated that the matter reflected the position of officials rather than a decision adopted through the House’s legally required……
Read more: https://addisstandard.com/?p=55753