openGauss你得装(38)

openGauss #入门 #安装 #数据库 #开源

知识来源:docs-opengauss.osinfra.cn/zh/
关闭操作系统防火墙
为了在防火墙开启的状态下,确保openGauss的正常使用。用户需要将同openGauss相关的服务、协议、IP以及端口添加到openGauss各主机的防火墙白名单中。
以openEuler操作系统为例,假设openGauss信息如表4所示。
表 4 openGauss信息
主机名称
内部IP
外部IP
plat1
192.168.0.11
10.10.0.11
plat2
192.168.0.12
10.10.0.12
plat3
192.168.0.13
10.10.0.13
plat4
192.168.0.14
10.10.0.14
管理网络

10.10.64.236
操作步骤
目前仅支持在防火墙关闭的状态下进行安装。

修改/etc/selinux/config文件中的“SELINUX”值为“disabled”。
a. 使用VIM打开config文件。
arduino复制代码arduino复制代码vim /etc/selinux/config

b. 修改“SELINUX”的值“disabled”,执行:wq保存并退出修改。
ini复制代码ini复制代码SELINUX=disabled

重新启动操作系统。
复制代码复制代码reboot

检查防火墙是否关闭。
lua复制代码lua复制代码systemctl status firewalld

若防火墙状态显示为active (running),则表示防火墙未关闭,请执行步骤4;
若防火墙状态显示为inactive (dead),则无需再关闭防火墙。

关闭防火墙并禁止开机重启。
arduino复制代码arduino复制代码systemctl disable firewalld.service
systemctl stop firewalld.service

在其他主机上重复步骤1到步骤4。

openGauss #入门 #安装 #数据库 #开源

知识来源:docs-opengauss.osinfra.cn/zh/

posted @ 2024-06-29 09:37  moremorecode  阅读(12)  评论(0)    收藏  举报