Иногда бывает ситуация когда 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
🔈Most Common Smart Speaker Usage
People are doing plenty of things with voice commands on their #SmartSpeakers, but shopping isn’t really one of them. Only about a quarter to a third of U.S. smart speaker owners have ever purchased something using voice. Very few do so on a regular basis. An Information article this summer said just 2 percent of #Alexa owners had made a purchase via Alexa in 2018.
🚀@PerspectiveIX via Recode.
❓Do you own a Smart Speaker, like Apple HomePod, Google Home, Amazon Echo, etc?
🗣The State of Chinese Voice Assistants
China is the second-largest consumer market in the world, hitting $4.3T in consumer expenditure in 2016 alone (for reference, the US ranked first with $12.5T, and Japan third with $2.7T).
The Chinese smart home market will reach nearly $23B in 2018, according to Juniper Research. #SmartSpeakers and #AI voice assistants are becoming an integral part of that.
Now that smart speakers are becoming commonplace, the early entrant, #Amazon, is losing its market share — and not just to its rival #Google, but to newer players emerging in China.
🚀@PerspectiveIX via CBInsights.
❓ Do you own a smart speaker?