Иногда бывает ситуация когда 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
The Unbalanced Equation
Reading Between the Lines of Tibor Nagy’s Diplomatic Signaling
The Diplomat’s Blueprint: Nagy’s Calculated Candor
(Based on Tibor Nagy’s interview withThe Reporter)
Tibor Nagy’s interview was not a casual reflection by a retired diplomat. It was a carefully calibrated act of strategic signaling—a rare moment where the inner logic of U.S. policy toward 🇪🇹 was articulated with unusual bluntness.
Wrapped in the practiced composure of a veteran envoy, Nagy’s words offered 🇪🇹 neither reassurance nor partnership, but something more revealing: clarity without comfort.
To grasp the interview’s real significance, Ethiopians must do what diplomacy often discourages—read not only what was said, but what was deliberately excluded, & examine how language is used to normalize hierarchy, constrain agency, & predefine acceptable limits of sovereignty.
👉Read the Full Article
#RedNileMedia#GERD#NileSovereignty#Geopolitics#TransactionalDiplomacy#AfricanAgency#MultipolarWorld#Somaliland
The Unbalanced Equation
Reading Between the Lines of Tibor Nagy’s Diplomatic Signaling
The Diplomat’s Blueprint: Nagy’s Calculated Candor
(Based on Tibor Nagy’s interview withThe Reporter)
Tibor Nagy’s interview was not a casual reflection by a retired diplomat. It was a carefully calibrated act of strategic signaling—a rare moment where the inner logic of U.S. policy toward 🇪🇹 was articulated with unusual bluntness.
Wrapped in the practiced composure of a veteran envoy, Nagy’s words offered 🇪🇹 neither reassurance nor partnership, but something more revealing: clarity without comfort.
To grasp the interview’s real significance, Ethiopians must do what diplomacy often discourages—read not only what was said, but what was deliberately excluded, & examine how language is used to normalize hierarchy, constrain agency, & predefine acceptable limits of sovereignty.
👉Read the Full Article
#RedNileMedia#GERD#NileSovereignty#Geopolitics#TransactionalDiplomacy#AfricanAgency#MultipolarWorld#Somaliland