sudo tar -xvzf mysql-cluster-gpl-7.6.2-linux-glibc2.12-x86_64.tar.gz
sudo mv mysql-cluster-gpl-7.6.2-linux-glibc2.12-x86_64 /usr/local/mysql
关闭安全策略(CentOS等)
# 关闭iptables防火墙(或者打开防火墙的1186、3306端口),在Shell中运行以下命令
chkconfig --level 35 iptables off
# 关闭SELinux
gedit /etc/selinux/config
# 将config文件中的SELINUX项改为disabled
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
# 最后重启系统
配置节点
管理节点
配置config.ini文件
mkdir /var/lib/mysql-cluster
cd /var/lib/mysql-cluster
vim config.ini