### Install EMQX Enterprise from zip file Source: https://docs.emqx.com/en/enterprise/v5.4/getting-started/getting-started.html Install EMQX Enterprise by unzipping the downloaded file into a directory. ```bash mkdir -p emqx && unzip emqx-enterprise-5.4.1-macos12-amd64.zip -d emqx ``` -------------------------------- ### Install EMQX with zip/tar.gz files Source: https://docs.emqx.com/en/enterprise/v5.3/getting-started/getting-started.html To install EMQX, enter: ```bash mkdir -p emqx && unzip emqx-enterprise-5.3.2-macos12-amd64.zip -d emqx ``` -------------------------------- ### Install and start EMQX via Apt Source: https://docs.emqx.com/en/emqx/latest/deploy/install-ubuntu.html Installs the EMQX package and starts the service using systemctl. ```bash sudo apt-get install emqx ``` ```bash sudo systemctl start emqx ``` -------------------------------- ### Install Flask and Start Service Source: https://docs.emqx.com/en/emqx/latest/data-integration/webhook.html These shell commands show how to install the Flask dependency and then start the Python HTTP server. ```shell # Install flask dependency pip install flask # Start Service python3 http_server.py ``` -------------------------------- ### Start Example with Docker Compose Source: https://docs.emqx.com/en/emqx/latest/deploy/cluster/lb-haproxy.html Starts the EMQX and HAProxy example using Docker Compose. ```bash docker compose up -d ``` -------------------------------- ### Install EMQX Enterprise from Zip File (macOS Example) Source: https://docs.emqx.com/en/enterprise/v5.0/getting-started/getting-started.html This command creates a directory and unzips the downloaded EMQX Enterprise package into it. Adjust the directory and filename as necessary. ```bash mkdir -p emqx && unzip emqx-enterprise-5.0.0-macos11-amd64.zip -d emqx ``` -------------------------------- ### Set up emqx-ft Client Environment Source: https://docs.emqx.com/en/emqx/latest/file-transfer/quick-start.html Download and set up the `emqx-ft` command-line tool and its Python virtual environment. ```bash git clone https://github.com/emqx/emqx-ft.git cd emqx-ft python3 -m venv .venv source .venv/bin/activate pip install . ``` -------------------------------- ### Start EMQX Edge Source: https://docs.emqx.com/en/emqx-edge/latest/tutorial/webhook.html Start EMQX Edge with your configuration. ```bash $ emqx-edge start --conf path/to/nanomq.conf ``` -------------------------------- ### Install EMQX Operator using Helm Source: https://docs.emqx.com/en/emqx-operator/2.2.10/getting-started/getting-started.html Installs the EMQX Operator using Helm. It adds the EMQX Helm repository, updates it, and then upgrades or installs the 'emqx-operator' in the 'emqx-operator-system' namespace. ```bash $ helm repo add emqx https://repos.emqx.io/charts $ helm repo update $ helm upgrade --install emqx-operator emqx/emqx-operator \ --namespace emqx-operator-system \ --create-namespace ``` -------------------------------- ### Install cert-manager using Helm Source: https://docs.emqx.com/en/emqx-operator/2.2.10/getting-started/getting-started.html Installs cert-manager, a prerequisite for EMQX Operator, using Helm. It adds the Jetstack Helm repository, updates it, and then upgrades or installs cert-manager in the 'cert-manager' namespace, ensuring CRDs are installed. ```bash $ helm repo add jetstack https://charts.jetstack.io $ helm repo update $ helm upgrade --install cert-manager jetstack/cert-manager \ --namespace cert-manager \ --create-namespace \ --set installCRDs=true ``` -------------------------------- ### Install and Verify Redis Source: https://docs.emqx.com/en/enterprise/v5.0/data-integration/data-bridge-redis.html Commands to start a Redis container, set a password, access the Redis CLI, authenticate, and verify the installation with SET and GET commands. ```bash # Start a Redis container and set the password to public docker run --name redis -p 6379:6379 -d redis --requirepass "public" # Access the container docker exec -it redis bash # Access the Redis server, use the AUTH command for authentication redis-cli 127.0.0.1:6379> AUTH public OK # Verify the installation 127.0.0.1:6379> set emqx "Hello World" OK 127.0.0.1:6379> get emqx "Hello World" ``` -------------------------------- ### Test AI Feature Startup Source: https://docs.emqx.com/en/neuronex/latest/admin/sys-configuration.html Command to test if AI features can start normally after installation and dependency setup. ```bash uv sync && cd src/apps_entry && uv run main.py ``` -------------------------------- ### Setup Function Source: https://docs.emqx.com/en/cloud/latest/connect_to_deployments/esp32.html Initialize serial communication, connect to WiFi, set MQTT broker details, and establish connection to the MQTT broker. ```c++ void setup() { Serial.begin(115200); connectToWiFi(); mqtt_client.setServer(mqtt_broker, mqtt_port); mqtt_client.setKeepAlive(60); mqtt_client.setCallback(mqttCallback); // Corrected callback function name connectToMQTT(); } void connectToWiFi() { WiFi.begin(ssid, password); Serial.print("Connecting to WiFi"); while (WiFi.status() != WL_CONNECTED) { delay(500); Serial.print("."); } Serial.println("\nConnected to WiFi"); } ``` -------------------------------- ### Start 1000 Connections Source: https://docs.emqx.com/en/emqx/latest/performance/benchmark-emqtt-bench.html Example command to start 1000 connections to an EMQX server. ```bash ./emqtt_bench conn -h emqx-server -c 1000 ``` -------------------------------- ### Start Command Example Source: https://docs.emqx.com/en/neuronex/v3.1/admin/conf-management.html Example of starting NeuronEX using the `start` command in daemon mode. ```sh ./bin/neuronex start -c etc/neuronex.yaml -m false -e false ``` -------------------------------- ### Set up emqx-ft Test Client Environment Source: https://docs.emqx.com/en/enterprise/v5.1/file-transfer/quick-start.html Clone the emqx-ft repository, create a virtual environment, activate it, and install the necessary packages. ```bash $ git clone https://github.com/emqx/emqx-ft.git $ cd emqx-ft $ python3 -m venv .venv $ source .venv/bin/activate $ pip install . ``` -------------------------------- ### Download EMQX Enterprise Zip File (macOS Example) Source: https://docs.emqx.com/en/enterprise/v5.0/getting-started/getting-started.html This command downloads the EMQX Enterprise zip file for macOS. Replace the URL if a different version or OS is needed. ```bash wget https://www.emqx.com/en/downloads/enterprise/5.0.0/emqx-enterprise-5.0.0-macos11-amd64.zip ``` -------------------------------- ### Start EMQX directly Source: https://docs.emqx.com/en/enterprise/v5.0/deploy/install-ubuntu.html This command starts EMQX directly and checks its status. ```bash emqx start EMQX 5.0.4 is started successfully! emqx_ctl status Node 'emqx@127.0.0.1' 5.0.4 is started ``` -------------------------------- ### HTTP GET Method Example Source: https://docs.emqx.com/en/enterprise/v5.8.2/hocon Example configuration for an HTTP GET request method. ```hocon method = "get" ``` -------------------------------- ### Install and Start Node.js SDK Source: https://docs.emqx.com/en/device-agent/latest/device-access/sdk-generation/nodejs.html Steps to install dependencies and start the Node.js SDK program. ```bash cp .env.example .env npm install npm run start ``` -------------------------------- ### Install EMQX Edge via Package Source: https://docs.emqx.com/en/emqx-edge/latest/installation/packages.html Manual steps to extract and start EMQX Edge from a downloaded package. ```bash unzip ./emqx-edge--linux-arm64.zip ``` ```bash ./emqx-edge start ``` -------------------------------- ### Install NeuronEX Source: https://docs.emqx.com/en/neuronex/latest/best-practise/master-backup.html Steps to download and install the NeuronEX deb package, start the service, and enable it to start on boot. ```shell # Download NeuronEX installation package wget https://www.emqx.com/zh/downloads/neuronex/3.4.3/neuronex-3.4.3-linux-amd64.deb # Install NeuronEX sudo dpkg -i neuronex-3.4.3-linux-amd64.deb # Start NeuronEX sudo systemctl start neuronex # Set to start automatically on boot sudo systemctl enable neuronex ``` -------------------------------- ### Start container and mount directories Source: https://docs.emqx.com/en/enterprise/v5.4/deploy/install-docker.html Start container and mount directories: ```bash docker run -d --name emqx-enterprise \ -p 1883:1883 -p 8083:8083 \ -p 8084:8084 -p 8883:8883 \ -p 18083:18083 \ -v $PWD/data:/opt/emqx/data \ -v $PWD/log:/opt/emqx/log \ emqx/emqx-enterprise:5.4.1 ``` -------------------------------- ### Download EMQX Enterprise zip file Source: https://docs.emqx.com/en/enterprise/v5.3/getting-started/getting-started.html To download the zip file, enter: ```bash wget https://www.emqx.com/en/downloads/enterprise/5.3.2/emqx-enterprise-5.3.2-macos12-amd64.zip ```