1.安装所需要的依赖包
$ sudo apt update && sudo apt install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
2.添加 EMQ X 的官⽅ GPG 密钥
$ curl -fsSL https://repos.emqx.io/gpg.pub | sudo apt-key add -
验证密钥
$ sudo apt-key fingerprint 3E640D53
pub
rsa2048 2019-04-10 [SC]
FC84 1BA6 3775 5CA8 487B
uid
1E3C C0B4 0946 3E64 0D53
[ unknown] emqx team <support@emqx.io>
3.使⽤以下命令设置 stable 存储库。
如果要添加 unstable 存储库,请在以下命令中的单词 stable 之后添加单词 unstable。
$ sudo add-apt-repository \
"deb [arch=amd64] https://repos.emqx.io/emqx-ce/deb/ubuntu/ \
./$(lsb_release -cs) \
stable"
lsb_release