zoukankan      html  css  js  c++  java
  • 2 阿里云服务器配置EMQX

    参考 https://docs.emqx.cn/cn/broker/latest/getting-started/install.html#shell-%E8%84%9A%E6%9C%AC%E4%B8%80%E9%94%AE%E5%AE%89%E8%A3%85-linux

    方法一 :一键安装

    curl https://repos.emqx.io/install_emqx.sh | bash

    方法二 

    ------------恢复内容开始------------

    1 安装解压包

    sudo apt-get install unzip

    2 下载安装包

    wget https://www.emqx.io/downloads/broker/v4.0.6/emqx-ubuntu16.04-v4.0.6.zip
    View Code

    3 解压安装包

    unzip emqx-ubuntu16.04-v4.0.6.zip

    4 进入bin目录安装

    cd emqx/bin/
    ./emqx console

    等待安装

    执行到这里后等一分钟,然后按CTRL+C退出

    5 启动EMQX服务器   这一步必须在bin文件夹内

    ./emqx start
    ./emqx_ctl status

     6 浏览器登录IP 

     登陆账号 admin 密码public

     不能访问端口解决办法

    1 阿里云端口全部开放

    2 如果安装过宝塔面板,也需要在宝塔面板全部放行

    7 微信小程序连接端口

     在设置中配置中增加

     location /mqtt {

        proxy_pass http://127.0.0.1:8083;#代理到上面的地址去
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
     

     在合法域名中增加自己的域名

    ------------恢复内容结束------------

  • 相关阅读:
    83. Remove Duplicates from Sorted List
    35. Search Insert Position
    96. Unique Binary Search Trees
    94. Binary Tree Inorder Traversal
    117. Populating Next Right Pointers in Each Node II
    116. Populating Next Right Pointers in Each Node
    111. Minimum Depth of Binary Tree
    169. Majority Element
    171. Excel Sheet Column Number
    190. Reverse Bits
  • 原文地址:https://www.cnblogs.com/baolixin/p/14128751.html
Copyright © 2011-2022 走看看