1 Star 0 Fork 1

lxw/paho.mqtt.java

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
start-broker.sh 1.23 KB
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
#
# start-broker.sh
#
# This script can be used locally or on a travis-ci instance to
# download, install and run an MQTT broker configured for testing
# the Eclipse Paho Clients.
#
# By default, it will run the Python Interopability Broker,
# however, if you set $BROKER to "MOSQUITTO", and set "TRAVIS_OS_NAME"
# to either "linux" or "osx" depending on your environment, then it will
# install and run Mosquitto. (For OSX users, you will need homebrew installed)
if [ "$BROKER" == "MOSQUITTO" ]; then
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
echo "Installing and starting Mosquitto Broker on Linux."
pwd
sudo service mosquitto stop
mosquitto -h
mosquitto -c test/tls-testing/mosquitto.conf &
fi
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
echo "Installing and starting Mosquitto Broker on OSX."
pwd
brew update
brew install openssl mosquitto
brew services stop mosquitto
/usr/local/sbin/mosquitto -h
/usr/local/sbin/mosquitto -c test/tls-testing/mosquitto.conf &
fi
else
echo "Installing and starting Python Interop Broker."
#sudo service mosquitto stop
git clone https://github.com/eclipse/paho.mqtt.testing.git
cd paho.mqtt.testing/interoperability
python3 startbroker.py -c localhost_testing.conf &
fi
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lxw46/paho.mqtt.java.git
git@gitee.com:lxw46/paho.mqtt.java.git
lxw46
paho.mqtt.java
paho.mqtt.java
master

搜索帮助