eclipse-mosquitto / mosquitto

Eclipse Mosquitto - An open source MQTT broker
https://mosquitto.org
Other
9.1k stars 2.4k forks source link

Install Mosquitto on AWS EC2 Centos #1410

Open vanht opened 5 years ago

vanht commented 5 years ago

I can't install mosquitto on aws ec2 centos, because respository no found. Can you fix? Thank you.

http://download.opensuse.org/repositories/home:/oojah:/mqtt/CentOS_CentOS-7/home:oojah:mqtt.repo

vanht commented 5 years ago

I install mosquitto, but Websockets support not available. Can you help me? Thank all.

sudo yum install wget mercurial cmake openssl-devel c-ares-devel libuuid-devel
wget https://github.com/warmcat/libwebsockets/archive/v2.1.0.tar.gz
tar xf v2.1.0.tar.gz
cd libwebsockets-2.1.0
mkdir build; cd build
cmake .. -DLIB_SUFFIX=64
sudo make install
echo "/usr/local/lib64" | sudo tee -a /etc/ld.so.conf.d/libwebsockets.conf
sudo ldconfig
ldconfig -p | grep libwebsockets
cd 
wget https://github.com/eclipse/mosquitto/archive/v1.4.10.tar.gz
tar xf v1.4.10.tar.gz
cd mosquitto-1.4.10
make WITH_LIBWEBSOCKETS=yes binary
# Edit ./man/Makefile to comment out the `all` and `dist` targets
# Edit ./man/Makefile to comment out all of the work in the `install` target
sudo make install

# sudo ln -s /usr/local/lib64/libwebsockets.so.4.0.0 /usr/lib/libwebsockets.so.4.0.0 # not needed

# I forgot how to make an rpm from these instructions
vanht commented 5 years ago

I install mosquitto, but Websockets support not available.

groovenectar commented 2 years ago

How did you install Mosquitto? The repo is still down: http://download.opensuse.org/repositories/home/oojah:/mqtt/CentOS_CentOS-7/home:oojah:mqtt.repo