ClustrixDB安装配置
前提条件
在安装ClustrixDB之前,需要:
- ClustrixDB安装程序和许可证密钥。
- 运行CentOS或RHEL 7.4的服务器(本地或云中)。
- 具有root或sudo特权来安装ClustrixDB。在安装过程中,您可以配置用户以运行和管理数据库进程。
准备Linux操作系统
安装包
sudo yum install bzip2 xz wget screen ntp ntpdate vim htop mdadm
如果是RHEL,修改repo file:
sudo yum-config-manager --enable rhui-REGION-rhel-server-optional
ClustrixDB要求将数据库文件存储在基于本地SSD的文件系统上,该文件系统与包含操作系统的根卷不同。该卷应配置RAID-0以获得最佳性能,并包括所有用于ClustrixDB的SSD。为了实现冗余,默认情况下,ClustrixDB已经写入了两个数据副本,因此,如果发生节点故障或磁盘故障,数据仍然可用,并且不需要更高的RAID卷类型,因为这可能会影响性能。Clustrix建议使用/ data的默认安装点来简化安装。
确保ntpd服务开启,防火墙关闭
shell> sudo systemctl enable ntpd
shell> sudo systemctl start ntpd
shell> sudo systemctl disable firewalld
shell> sudo systemctl stop firewalld
核实SElinux关闭状态
shell> sestatus
SELinux status: disabled
如果开启修改 /etc/sysconfig/selinux 中 SELINUX=disabled
然后执行:
shell> setenforce
SELinux status: disabled
配置用户
默认情况下,ClustrixDB安装程序将创建和配置这些用户。如果愿意,可以在安装之前创建这些用户,然后指示安装程序使用这些用户。
这些是与安装和操作ClustrixDB有关的Linux OS用户帐户:
|
Linux OS用户 |
描述
|
如何使用 |
|---|---|---|
|
root |
root、 |
运行ClustrixDB软件的初始安装。可以通过授予另一个Linux用户的sudo特权间接运行安装。ClustrixDB的后续升级不需要root级权限。 |
|
clxd |
ClustrixDB守护程序 |
ClustrixDB进程以clxd Linux用户身份运行。这是一个守护程序帐户,因此管理员不应使用该帐户登录Linux。一个例外是在执行ClustrixDB升级时,升级以clxd Linux用户身份执行。 |
|
clxm |
ClustrixDB管理 |
管理员可以使用此Linux用户来使用ClustrixDB软件。通常将此用户配置为设置其环境,以方便使用ClustrixDB命令行工具。 |
安装ClustrixDB
在每个节点上安装ClustrixDB
以root用户或具有sudo特权的非root Linux用户身份登录到每个ClustrixDB节点。
下载ClustrixDB安装,然后解压缩并运行安装程序脚本:
shell> tar xvfj current_version .el7.tar.bz2
shell> cd current_version
shell> sudo ./clxnode_install.py
安装时候交互的填写内容:
0,内存计算为服务器内存的百分70%-75%
7, MySQL端口修改非3306
|
Option
|
Prompt
|
Description
|
Default Value
|
|---|---|---|---|
|
Memory to use for ClustrixDB, in MiB |
The default value is auto-detected based on the amount of memory available. |
auto-detected |
|
|
1 |
CPU cores to use for ClustrixDB |
All is suggested and advised, however, this can be any number that is less than or equal to the number of cpu cores licensed for a node. |
All |
|
2 |
Database Storage Path |
The path used for ClustrixDB data. |
/data/clustrix |
| 3 |
Storage space to pre-allocate to ClustrixDB |
This is the amount of space that will initially be allocated for device1 storage. |
auto-detected |
|
4 |
Database Logs Path |
This directory contains the ClustrixDB logs ( query.log , clustrix.log , debug.log , etc.). |
/data/clustrix/log |
|
5 |
MySQL Protocol Unix Socket |
The location of the socket file that is necessary for communication to the database. |
/var/lib/mysql/mysql.sock |
|
6 |
Database Listen Address |
The IP address on which ClustrixDB will accept client connections. This may be a specific IP or 0.0.0.0 to denote that any connection is allowable. |
0.0.0.0 |
|
Database MySQL TCP Port |
The default TCP port used for accessing ClustrixDB. |
3306 |
|
|
8 |
Private (Back-End) IP |
The Private (Back-End) IP is the IP that will be used for internode communication.
|
IP of current node |
|
9 |
Back End Network TCP/UDP Port |
24378 is the port that ClustrixDB uses for back-end network communication using both TCP and UDP. |
24378 |
| 10 | Health Monitor TCP/UDP Port | Port used by the Clustrix Health Monitor | 3581 |
| 11 | OS User | The OS user used to run ClustrixDB. Clustrix recommends specifying a user other than root. See ClustrixDB Operating System Users for more information. |
clxd* |
| 12 | Management User | The OS user used to manage ClustrixDB. Clustrix recommends specifying a user other than root. See ClustrixDB Operating System Users for more information. |
clxm |
| 13 | Reduce TCP retry count |
Default to reducing the retry count from 15 to 6 |
Yes |
| 14 | ClxDBI Install Path | The path where the ClxDBI will be installed. | /opt/clustrix/dbi |
| 15 | ClxDBI Listen Address | The address at which ClxDBI listens. | 0.0.0.0 |
| 16 | ClxDBI Listen TCP Port | The port at which which ClxDBI listens. | 7888 |
| 17 | ClxDBI Log Path | The path for logs generated by ClxDBI. | /data/clustrix/log/clxdbi |
| 18 | ClxDBI PID File Path | The location of the process identification number file for ClxDBI. | /var/run/clustrix |
| 19 | ClxGUI Install Path | The path where the ClxGUI will be installed. | /opt/clustrix/clxgui |
| 20 | ClxGUI Data Cache Path | The path for data cached by ClxGUI. | /var/cache/clustrix |
| 21 | ClxGUI Listen Address | The address at which ClxGUI listens. | 0.0.0.0 |
| 22 | ClxGUI Listen TCP Port | The TCP port used for HTTP communication by ClxGUI. If a user other than root is specified for the OS User, the default will be 8080. |
8080 |
| 23 | ClxGUI Log Path | The path for logs generated by ClxGUI. | /data/clustrix/log/clxgui |
| 24 | ClxGUI PID File Path | The location of the process identification number file for the ClxGUI. | /var/run/clustrix |
防火墙开启相应需要的端口
|
Protocol
|
Port
|
Use
|
Reason
|
|---|---|---|---|
| TCP | 22 | SSH | Administration and upgrade |
| TCP, UDP | 2048 | Control Port | ClustrixDB specialized administrative tool |
| TCP, UDP | 2424 | Nanny Port | nanny - ClustrixDB process manager |
| TCP | 3306 | SQL |
Database communication |
| TCP | 7888 | clxdbi | Database interface for ClustrixGUI |
| TCP, UDP | 24378 - 24410 | Multiport | ClustrixDB internode communication |
ClustrixDB安装配置的更多相关文章
- Hive安装配置指北(含Hive Metastore详解)
个人主页: http://www.linbingdong.com 本文介绍Hive安装配置的整个过程,包括MySQL.Hive及Metastore的安装配置,并分析了Metastore三种配置方式的区 ...
- Hive on Spark安装配置详解(都是坑啊)
个人主页:http://www.linbingdong.com 简书地址:http://www.jianshu.com/p/a7f75b868568 简介 本文主要记录如何安装配置Hive on Sp ...
- ADFS3.0与SharePoint2013安装配置(原创)
现在越来越多的企业使用ADFS作为单点登录,我希望今天的内容能帮助大家了解如何配置ADFS和SharePoint 2013.安装配置SharePoint2013这块就不做具体描述了,今天主要讲一下怎么 ...
- Hadoop的学习--安装配置与使用
安装配置 系统:Ubuntu14.04 java:1.7.0_75 相关资料 官网 下载地址 官网文档 安装 我们需要关闭掉防火墙,命令如下: sudo ufw disable 下载2.6.5的版本, ...
- redis的安装配置
主要讲下redis的安装配置,以及以服务的方式启动redis 1.下载最新版本的redis-3.0.7 到http://redis.io/download中下载最新版的redis-3.0.7 下载后 ...
- Windows环境下的NodeJS+NPM+Bower安装配置
npm作为一个NodeJS的模块管理,之前我由于没有系统地看资料所以导致安装配置模块的时候走了一大段弯路,所以现在很有必要列出来记录下.我们要先配置npm的全局模块的存放路径以及cache的路径,例如 ...
- ubuntu kylin 14.04安装配置MongoDB v2.6.1(转)
1.获取最新版本 https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.6.1.tgz 2.解压并进入bin目录 tar zxvf mongo ...
- Django基础之安装配置
安装配置 一 MVC和MTV模式 著名的MVC模式:所谓MVC就是把web应用分为模型(M),控制器(C),视图(V)三层:他们之间以一种插件似的,松耦合的方式连接在一起. 模型负责业务对象与数据库的 ...
- 【转】Windows平台下的Subversion安装配置新手指南
原文地址:http://developer.51cto.com/art/201005/199628.htm 本文介绍Subversion安装配置快速指南,首先讲Subversion的安装和配置,Uni ...
随机推荐
- Shell编程、part3
本节内容 1. shell流程控制 2. for语句 3. while语句 4. break和continue语句 5. case语句 6. shell编程高级实战 shell流程控制 流程控制是改变 ...
- 《Python编程从0到1》笔记4——你分得清“索引和切片”吗?
Python为序列类型(sequence types)[1]提供了独特的索引(indexing)和切片(slicing)机制以访问序列的某个元素或某一部分. [1] 如list, tuple, ran ...
- ElasticSearch Kibana 创建索引,删除索引,查看索引配置
1.输入命令,点击绿色的三角形箭头. PUT chuyuan //创建索引 GET chuyuan/_settings //查看chuyuan索引下的配置 GET _all/_settings ...
- Executor框架(转)
摘要: Executor作为灵活且强大的异步执行框架,其支持多种不同类型的任务执行策略,提供了一种标准的方法将任务的提交过程和执行过程解耦开发,基于生产者-消费者模式,其提交任务的线程相 ...
- 错误 “SCRIPT7002: XMLHttpRequest: 网络错误 0x2ef3, ie浏览器兼容问题
参考:https://www.telerik.com/blogs/help!-running-fiddler-fixes-my-app- https://www.cnblogs.com/OpenCod ...
- MySQL下载~安装教程~这里示例 MySQL 8.0 Command Line Client
打开 https://www.mysql.com 也可以选择我分享的百度网盘文件 MySQL8.0.16.0 安装包 https://pan.baidu.com/s/1U8DkyJVp9Zvx7Zok ...
- python常见问题解决方案
平时工作中经常需要用到这些python小技巧,顺便做个记录 import requests import time def get_pr(domain): pr = 6 time.sleep(1) h ...
- FileUtils.writeByteArrayToFile方法
FileUtil类是Apache Commons IO库里面的一个类,是与文件相关的一个辅助类,我写了一个可运行的java文件 import java.io.*; import org.apache. ...
- java冒泡排序小实例
首先我们了解下什么是冒泡排序: 冒泡排序就是把小的元素往前调或者把大的元素往后调.比较是相邻的两个元素比较,交换也发生在这两个元素之间.所以,如果两个元素相等,我想你是不会再无聊地把他们俩交换一下的: ...
- Linux学习--第十三天--日志、系统运行级别、grub加密
日志 rsyslogd取代了syslogd. /var/log/cron #定时任务相关日志 /var/log/cups #打印信息相关日志 /var/log/dmesg #开机内核自检相关日志,dm ...