emqx安装

发布时间 2023-12-26 19:00:23作者: EJW
#!/bin/bash
##############################################################
# File Name: install_emqx.sh
# Version: V1.0
# Author: junwang
# Organization: 
# Created Time : 2021-04-15 17:12:54
# Description:
##############################################################
install_path=/web
mkdir	 -p $install_path
install_emqx(){
cd $install_path && wget http://47.105.153.221:33389/data/User/admin/home/caeri/exmq/emqx-centos7-4.3.0-amd64.zip
unzip emqx-centos7-4.3.0-amd64.zip
cd $install_path/emqx/bin && ./emqx start
if [  $? -eq 0  ]
then
    echo "################################### emqx install successfully ##########################"
   echo '@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#**************************************#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@*=+======================================+=*@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@===*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*===@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@===*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*===#@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@#===#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#===#@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@#===#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#===#@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@*===#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@===*@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@*===@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@===*@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@===*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*===@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@===*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*===@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@#===*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#===#@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@#===#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#===#@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@*===#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#===*@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@*===@@@@@@@#=**========#@@****=*@@@@@@@#****=#@@@@@#**====**#@@@@@@@===*@@@@@@@@@@@@@@
@@@@@@@@@@@@@*===@@@@@@@@============@@#+=====@@@@@@@=====+#@@@#==+==**=====@@@@@@@*==*@@@@@@@@@@@@@
@@@@@@@@@@@@===*@@@@@@@@@====@@@@@@@@@@*======#@@@@@=======@@@*===*@@@@@*====@@@@@@@*===@@@@@@@@@@@@
@@@@@@@@@@@===*@@@@@@@@@*====@@@@@@@@@@=======*@@@@=======*@@*+==*@@@@@@@====@@@@@@@@*===#@@@@@@@@@@
@@@@@@@@@@===#@@@@@@@@@@===========@@@#====#===@@@===#*===#@@====#@@@@@@#====@@@@@@@@@#===@@@@@@@@@@
@@@@@@@@@@===#@@@@@@@@@@====*####*#@@@*===*@===#@===#@====@@@====@@@@@@@*===*@@@@@@@@@#===@@@@@@@@@@
@@@@@@@@@@@===*@@@@@@@@#====@@@@@@@@@@====#@#===*==#@#====@@#====@@@@@@#====@@@@@@@@@#===#@@@@@@@@@@
@@@@@@@@@@@@===*@@@@@@@*===*@@@@@@@@@@====@@@=====#@@*===*@@@====*@@@@*====@@@@@@@@@*===@@@@@@@@@@@@
@@@@@@@@@@@@@*===@@@@@@============@@#+=+=@@@*+==#@@@===+#@@@@*==+====+====#@@@@@@@*===@@@@@@@@@@@@@
@@@@@@@@@@@@@@*===@@@@@############@@#####@@@@###@@@@####@@@@@@@##***###====@@@@@@===*@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@*===#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@##@@@@@#===*@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@#===#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#===#@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@#===*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#===#@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@===*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*===#@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@===*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*===@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@*===@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*==*@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@*===#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@===*@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@#===#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#===*@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@#===#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#===#@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@#===*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*===#@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@===*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*===@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@*=+======================================+=*@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#**************************************#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@'
fi
netstat -lntup|grep emqx
}

install_emqx