1、cd /etc/yum.repos.d
2、wget http://download.opensuse.org/repositories/home:/oojah:/mqtt/CentOS_CentOS-6/home:oojah:mqtt.repo
3、yum makecache
4、yum install mosquitto libmosquitto-devel mosquitto-clients
5、service mosquitto start
二、再安装mosquitto-php
:::这个成功了
6、pecl install Mosquitto-alpha
2、wget http://download.opensuse.org/repositories/home:/oojah:/mqtt/CentOS_CentOS-6/home:oojah:mqtt.repo
3、yum makecache
4、yum install mosquitto libmosquitto-devel mosquitto-clients
5、service mosquitto start
二、再安装mosquitto-php
:::这个成功了
6、pecl install Mosquitto-alpha
extension=mosquitto.so;//加入php.ini
service httpd restart
齐活