ClustrixDB在centos上的安装

前端之家收集整理的这篇文章主要介绍了ClustrixDB在centos上的安装前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

ClustrixDB 可以被安装在 CentOS 6.X 任意系统上,也支持安装在多个云环境上 。

第一: 在第一个节点上安装 ClustrixDB

拷贝安装包到一个节点上,解矸并且执行:

shell> tar xvjf current_version.tar.bz2
shell> cd current_version
shell> sudo ./clxnode_install.py

安装可能会花一些时间,等一会儿就好了。

第二: 在安装向导里确认调整部分配置选项

在第一个节点上安装ClustrixDB,键入合适的推荐参数。参考: ClustrixDB Installation Options 修改参数值。.

第三: 每个节点的安全性配置

配置 ClustrixDB 对外部应用程序提供服的端口和内部通信端口.

选项 A:允许所有内部结点间的通信

允许节点之间通信的推荐方法是允许在安全环境内的所有端口上的所有节点之间的访问。

选项 B: 开启指定的端口

您还可以打开ClustrixDB所需的特定端口,如下所示。

如果设置了网络安全如防火墙或安全组,则必须允许以下网络流量

在 Clustrix 节点间的内部访问

这些是节点间通信的必需的一些端口. 必须确保集群内部端口是可以访问的.

Protocol
Port
Use
Reason
TCP 22 SSH Administration and upgrade
TCP,UDP 2048 Control Port ClustrixDB specialized administrative tool
TCP,UDP 2424 NannyPort nanny - Clustrix process manager
TCP 3306 sql

Database communication

TCP 7888 clxdbi Database interface for ClustrixGUI
TCP,UDP 24378 - 24410 Multiport ClustrixDB internode communication

外部访问端口

这些是应用程序和集群管理员从外部访问的端口.

Protocol
Port
Use
Reason
TCP 22 SSH Remote management and cluster access
TCP 80 HTTP ClustrixGUI
TCP 3306 sql Database access
TCP 3581 Health Check Heartbeat monitor for cluster

For instructions for specific cloud environments,please see Installing ClustrixDB at a cloud provider.

Step 4: Install Software on Additional Nodes

从第一个配置节点的命令行运行flex_clone,以在其他节点上安装相同版本的ClustrixDB。 需要为集群的每个节点都运行一次。

Run flex_clone from a node with ClustrixDB already installed
shell> /opt/clustrix/bin/flex_clone.sh 'new node IP'

Step 5: 配置集群

You can now connect to your new database to configure your cluster. ClustrixDB uses your existingMysqLclient to access the ClustrixDB database. First,execute the following from a command line prompt.

shell> MysqL

Follow this Syntax from the resulting MysqL promptto provide the license number and configure your cluster. Be sure to include the curly bracketsthat surround your license key. (If you do not already have a license key,please contactClustrix Sales.)

SET GLOBAL license = '{license key including curly brackets}'
ALTER CLUSTER ADD 'ip' [,'ip'] ... 

For example,this adds three nodes to the cluster.

sql> ALTER CLUSTER ADD '10.2.13.58','10.2.13.55','10.2.13.59';

Step 6: 验证NTP 是否在整个集群中同步

This test will only succeed once all nodes have been successfully added to your cluster using the prevIoUs step.

To verify that the clocks are synchronized between all nodes of the cluster,run the following from a command line prompt:

shell> /opt/clustrix/bin/clx cmd 'ntpstat'

See Setting Up NTP for ClustrixDB on CentOS if this step identifies issues.

Step 7: 校验 ClustrixDB 配置

Execute the following from a command line prompt to access the “test” database created during installation:

shell> MysqL -u root test
@H_248_301@Step 8: 访问 GUI

You should now be able to access the ClustrixGUI Administration UI to monitor and manage your cluster. Provide the IP or hostname of one of the nodes of your cluster in the address bar of a browser and press Enter. Clustrix recommends using Chrome.

Please contact Clustrix Supportif you experience any problems during installation.

猜你在找的CentOS相关文章