windows安装瀚高数据库报错问题
错误描述:
Connection to localhost:5866 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Connection to localhost:5866 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Connection refused: connect
Connection refused: connect
查了很多都无法解决,当初还以为是本地安装的postgreSql影响到它,去停掉postgreSql还是不行;最后查到一个博主说的可能是运行内存不够导致的。[参考博客](https://blog.youkuaiyun.com/yesmldn/article/details/140039849)
解决办法:
去你安装瀚高数据目录(如:D:\highgo\database\6.0.4)搜索postgresql.conf该文件修改内存配置,原来的2048的我改为1024就可以了;最后打开任务管理器,启动hgdb-enterprise-6.0.4即可。
修改postgresql.conf
maintenance_work_mem = 1024MB #maintenance_work_mem = 64MB # min 1MB
如果还是不行,可以试试去防火墙添加该数据库端口号。