Installation and Configuration of RabbitMQ on RedHAT (RHEL) / CentOS (Yum)

rpm –import https://www.rabbitmq.com/rabbitmq-signing-key-public.asc

wget https://www.rabbitmq.com/releases/rabbitmq-server/v3.6.1/rabbitmq-server-3.6.1-1.noarch.rpm

yum install erlang

yum install rabbitmq-server-3.6.1-1.noarch.rpm

Start Server

chkconfig rabbitmq-server on

Configure Ports

  • 4369 (epmd), 25672 (Erlang distribution)
  • 5672, 5671 (AMQP 0-9-1 without and with TLS)
  • 15672 (if management plugin is enabled)
  • 61613, 61614 (if STOMP is enabled)
  • 1883, 8883 (if MQTT is enabled)

Setup Management Web UI

rabbitmq-plugins enable rabbitmq_management

According to Boyd, a fighter pilot didn’t win by faster reflexes; he won because his reflexes were connected to a brain that thought faster than the opponent.
– Bing West and Ray Smith,
The March Up, p. 11

Installing MongoDB Native Driver in PHP 7

$ wget http://pear.php.net/go-pear.phar
$ php go-pear.phar

$ git clone git://github.com/mongodb/mongo-php-library.git

$ cd mongo-php-library
$ pecl install mongodb

Now open up your active php.ini config file (php -i | grep ini) and add:

[code]
;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
extension=mongodb.so

[/code]

Installing MongoDB

apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927

echo "deb http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.2 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
apt-get update

apt-get install -y mongodb-org

After this; you can learn more about using the Mongo Shell (‘mongo’) in the MongoDB Docs at https://docs.mongodb.org/manual/mongo/.

Learn more about CRUD (Create, Read, Update, Delete) Operations at https://docs.mongodb.org/manual/core/crud-introduction/