Иногда бывает ситуация когда 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
@siftrBot
Qué puede hacer este bot?
Este bot te ayuda a encontrar Bots, Canales y Grupos para explorar. Comienza tocando 'Categorías'.
Idioma: Inglés
(visto en @BotsGram_cu)
#search
📰 Global Keyword Post Search
In the latest version of Telegram Beta for Android, searching posts using keywords is now subject to a daily cap. To find posts, go to Search, select Posts and enter your keyword.
Users receive 10 free keyword searches each day. After that, you must spend 10 stars to unlock two more searches or wait for the next reset. This limit applies to all users including Premium. Non Premium users cannot access keyword searches at all.
This feature is currently available in the test backend.
#Search | #beta v11.14.0
👉The TG Times
📰New Search Bar option
In the latest version of Telegram Beta for Android, you will be able to manage your search bar better than before and find the information that you are looking for easily
#Search | #beta v11.6
👉The TG Times