Selasa, 26 Juni 2018

How to fresh Install Galera Cluster on Linux system Redhat Centos 7 Ubuntu

  Tidak ada komentar
Some time need to perform MariaDB Galera Cluster installation on Linux machine.To do that follow the below steps.
Note: Please do not use below steps if Galera Cluster have any running databases.
Step 1: Add Galera Cluster Repo
First add galera cluster repo on your server, for RPM-based distributions, such as CentOS, Red Hat and Fedora, you can enable the MariaDB repository by adding a .repo file to the /etc/yum/repos.d/ directory like bellow
# sudo  vi /etc/yum.repos.d/mariadb.repo
Add following lines
# http://mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.0/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
enabled=0
If you use Debian-based distributions no need to add it.

Step 2: Install Galera Cluster Packages
For RPM-based distributions, in the terminal run the following command:
# yum --enablerepo=mariadb -y install MariaDB-Galera-server MariaDB-client rsync galera socat
If you use Debian-based distributions, in the terminal run the following command:
# apt-get install mariadb-galera-server mariadb-client rsync galera socat

After completing above three steps, now you have a fresh Galera Cluster install on your system with new settings.

Source :

http://galeracluster.com/documentation-webpages/installmariadb.html

Tidak ada komentar :

Posting Komentar