Streamlined summary redis/rabbitmq/zookeeper installation on Linux Centos7

Source: Internet
Author: User
Tags openssl zookeeper rabbitmq

Because Benbow has already written a number of related installation and cluster, you can refer to the previous records, but because Bo recently replaced VM14 and CENTOS7, in order to adapt to these environments, so the follow-up will gradually re-build the relevant environment, and the previous installation ideas further streamline carding, in order to minimize the discourse, Record the most adequate stuff, publish the article today, but the follow-up will also be updated ...

The owner of the Bo for light Centos7 installed is minimized without the desktop version.

The dependencies that may be required for a Linux minimized version are:
Get ready
Yum Install
Build-essential OpenSSL openssl-devel UnixODBC unixodbc-devel
Make GCC gcc-c++ kernel-devel M4 ncurses-devel tk tc XZ

These are only when you install certain things installed do not report a mistake will find, oh, the original lack of things oh!
One, Redis single version installation
1.gc++ Installation
2. Download with wget (yum-y install wget if no wget installed)
3.wget http://download.redis.io/releases/redis-4.0.9.tar.gz
4. Unzip
5. Go to unzip package install make
6. Start under SRC

This stand-alone version of the installation is actually relatively simple, multi-machine cluster is more complex, rely on more things, need to install full, reference Benbow master CENTOS6 on the Redis multi-machine cluster, the back in the cluster on the CENTOS7 will be summarized here, patient waiting.
Second, RABBITMQ stand-alone version installation (Centos6 used another method of installation, non-RPM installation)

The installation must have Erlang, Socat secret keys
Download:
Erlang can also be found on GitHub based on version: Https://github.com/rabbitmq/erlang-rpm/releases
Socat Key: Https://pkgs.org/download/socat

You can also use the following command to download the relevant
wget www.rabbitmq.com/releases/erlang/erlang-18.3-1.e17.centos.x86_64.rpm
wget http://repo.iotti.biz/CentOS/7/x86_64/socat-1.7.3.2-5.e17.lux.x86_64.rpm
wget www.rabbitmq.com/releases/rabbitmq-server/3.6.5/rabbitmq-server-3.6.5-1.noarch.rpm
1. Dependent Environment Erlang installation (note the correspondence between Erlang and the RABBITMQ version)

2.RPM One-click Installation and binary green installation (recommended one-touch installation of RPM, no need for configuration of environment variables, Green needs)

3. Requires Socat key, Erlang installs first, next installs Socat key pack, and finally installs RABBITMQ

The correct installation sequence is as follows:

The installation was successful.

Configuration file (rabbitmq core configuration file, because the CENTOS7 and CENTOS6 directory structures differ, the default location is different)
Vim/usr/lib/rabbimq/lib/rabbitmq_server-3.6.5/ebin/rabbit.app
such as changing the password, configuration, such as: Loopback_users in the [<< "Guest" >>], only keep [guest]

Server Start and stop:
Start Rabbitmq-server Start &

lsof-i:5276 Error:

-bash:lsof:command not found

Workaround Yum Install lsof

Run again

Stop Rabbitmqctl App_stop

Management plugin: Rabbitmq-plugins enable rabbitmq_management

Access Address: http://ip:15672/

If there is no successful access, the firewall needs to be shut down and the command is:

1. Turn off the firewall: Systemctl stop Firewalld.service

2. Turn on the firewall: Systemctl start Firewalld.service

3. Turn off boot: systemctl disable FIREWALLD

Visit 192.168.10.110:15672 again and enter your username and password: Guest

Third, the installation of stand-alone version zookeeper

Zookeeper is a Java-compiled environment that requires JDK installation, download the 1.8 rpm JDK on the website

These three zookeeper installs are the easiest and nothing complicated to download the latest

: https://archive.apache.org/dist/zookeeper/

Download and upload to the specified directory to install the JDK

Java-version view version installed correctly after installing zookeeper

TAR-ZXVF zookeeper-3.4.13.tar.gz Decompression

After decompression, the main zookeeper_sample.cfg renamed to Zook.cfg, while modifying the inside of the data path DataDir

The standalone version is configured successfully and then goes to the bin directory to run, default port 2181

Startup success Instructions Installation complete!

Streamlined summary redis/rabbitmq/zookeeper installation on Linux Centos7

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.