diff --git "a/content/zh/post/lijun/\347\256\200\345\214\226\345\256\211\350\243\205\346\214\207\345\257\274.md" "b/content/zh/post/lijun/\347\256\200\345\214\226\345\256\211\350\243\205\346\214\207\345\257\274.md" new file mode 100644 index 0000000000000000000000000000000000000000..b12bac8f43e5da8f946c5c8a4c38c2d47d53d16e --- /dev/null +++ "b/content/zh/post/lijun/\347\256\200\345\214\226\345\256\211\350\243\205\346\214\207\345\257\274.md" @@ -0,0 +1,146 @@ +# 概述 + +本章节主要介绍采用openGauss简化安装脚本(以下简称安装脚本),一键式安装openGauss数据库所必须的系统环境及安装步骤。 + +# 安装环境要求 + + +## openGauss环境要求 + +安装openGauss的具体环境要求,请参考《openGauss安装指南》中的“2.3.1节软硬件环境要求”章节。 + +## 安装脚本环境要求 + +### 硬件环境要求 + +安装脚本对安装环境的操作系统及对应处理器架构进行了限制,目前支持的环境如[表1 ](#table1424418)所示。 + +**表 1** 硬件环境要求 + + + + + + + + + + + + +

操作系统

+

处理器架构

+

openEulor

+

aarch64

+

CentOS

+

x86_64

+
+ +### 软件依赖要求 + +安装脚本依赖于其它软件的支持,如[表2 ](#table23052927)所示。 + +**表 2** 软件依赖要求 + + + + + + + + + + + + +

所需软件

+

建议版本

+

firewalld

+

-

+

python

+

3

+
+ +# 安装openGauss + +- **[安装前准备](安装前准备.md)** + +- **[执行安装](执行安装.md)** + + +## 安装前准备 + +### 导入安装脚本 + +安装脚本包含了多个文件,其用途如[表1 ](#table32787233)所示。导入安装脚本时,建议直接导入tar包至安装环境中,随后在安装环境中进行解压,否则可能出现window与unix风格不兼容的问题。若出现此类问题,可以使用dos2unix命令对安装脚本进行格式转换。 + +**表 1** 安装脚本清单 + + + + + + + + + + + + + + + + + + +

文件名称

+

用途

+

install.sh

+

简化安装主程序

+

common.sh

+

公共命令

+

README.md

+

参考文档

+

template.xml

+

xml模板

+
+ +### 导入openGauss数据库安装包 + +安装脚本支持以下两种方式导入openGauss数据库安装包: + +- 手动导入 + +在openGauss官网(https://opengauss.org/zh/download.html)下载对应版本安装包拷贝至安装环境中,存放路径为安装脚本的上层目录。 + +- 自动导入 + +配置安装环境外网访问,并确保安装脚本上层路径不存在openGauss数据库安装包。当运行安装脚本时,会自动下载对应版本安装包进行安装。 + +## 执行安装 + +使用如下命令执行安装脚本。 + +``` +sh install.sh user_name user_group host_ip host_port [install_path] +``` + +### 参数说明 + +- user\_name为openGauss数据库的安装用户。 + +- user\_group为openGauss数据库安装用户所属用户组。 +- host\_ip为主机在后端存储网络中的IP地址(内网IP)。 +- host\_port为数据库节点的基础端口号。 +- install\_path为openGauss数据库安装路径,该参数为可选参数。 + +以上参数的详细信息,请参考《openGauss安装指南》中的3.1节创建XML配置文件。 + +### 注意事项 + +- 不指定install\_path参数时,数据库默认安装在/opt/user\_name路径下。 + +- 无论采用何种方式导入openGauss安装包,安装脚本都会在/home/user\_name/openGaussTar路径下建立本地安装包文件。该路径支持修改,请在install.sh中修改install\_location参数,但是需要与安装路径install\_path不同。 +- 安装脚本必须在root下执行,且同一时刻只有1个安装脚本正在运行。 + + \ No newline at end of file