PieCloudDB网络访问控制配置

问题描述 投票:0回答:1

我正在尝试在虚拟机上部署 PieCloudDB 数据库实例。如果我想实现网络访问控制,防止非法访问,如何配置白名单来实现?

pieclouddb
1个回答
0
投票

部署PieCloudDB后,您可以通过SSH登录Coordinator节点,执行以下命令确认网络配置文件路径:

ps -ef | grep dispatch  ## Check the coordinator service port
cd /home/openpie/cn0/mytest/1/6003/   ## Adjust the path according to your deployment
vim pg_hba.conf   ## Add your allowed network whitelist to the "IPv4 local connections:"

for example:
host    all             all             192.168.1.0/24              md5

然后执行以下命令应用配置:

ps -ef | grep dispatch    ## Check the PID of the coordinator process
kill -SIGHUP pid
© www.soinside.com 2019 - 2024. All rights reserved.