http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=/com.ibm.mq.amqtat.doc/tt00000_.htm
启动
mosquitto -c /etc/mosquitto/mosquitto.conf
订阅
vim /usr/local/src/mosquitto-1.1.3/lib/python/sub.py
修改 地址(127.0.0.1) 和 订阅名(test)
然后执行
python sub.py
最后发布
python
import mosquitto
c = mosquitto.Mosquitto()
c.connect("127.0.0.1",1883)
c.publish("test","test")