openGauss 数据库 日志暴涨的解决办法

88 阅读1分钟

1.问题 日志目录 /var/log/omm/omm/pg_log/dn_6002

一直在报错

could not bind IPv4 socket: Is another instance already running on port 1540。。。。

2.解决

前置提要 :172.20.17.239 是主服务 172.20.17.240 是从服务

主服务配置

/opt/huawei/install/data/dn 目录下

postgresql.conf 文件

之前是:

    localhost 之前是 172.20.17.240 

    remotehost 之前是 172.20.17.239  进行调换

修改后:

image.png

/opt/huawei/install/data/dn1 目录下 postgresql.conf 文件 正确配置 : image.png

从服务配置:

路径 :/opt/huawei/install/data/dn 目录下 postgresql.conf 文件

image.png

重启服务就好了。