登陆华为服务器后
找到相关页面
第一步登陆ssh服务器【如图】
第二步【输入以下命令】
1--配置 EMQX Yum 源
curl -s https://assets.emqx.com/scripts/install-emqx-rpm.sh
| sudo bash
2------安装EMQX
sudo yum install emqx
3------启动EMQX
sudo emqx start
第一条命令执行过程
出现如下提示代表下载完毕
运行sudo yum install emqxcentos8.2运行可能会报错
解决方法:
mv/etc/yum.repos.d /etc/yum.repos.d.bak
mkdir-p /etc/yum.repos.d
curl https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo >
/etc/yum.repos.d/Centos-vault-8.5.2111.repo
curlhttps://mirrors.aliyun.com/repo/epel-archive-8.repo >
/etc/yum.repos.d/epel-archive-8.repo
yum clean all
yummakecache
`继续运行sudo yum install emqx还是会报错,提示包不存在。因为yun清理了缓存所以需要
运行第一条命令:curl -shttps://assets.emqx.com/scripts/install-emqx-rpm.sh|sudo bash
执行完下载命令之后,再运行第二条命令sudo yum install emqx,输入y回车
启动emqx:sudo emqx start
[if !supportLineBreakNewLine]
[endif]