---
title: "postgre无法启动一案例"
author: "xianxun"
date: "2011-03-23T15:55:05Z"
tags: ["PostgreSQL"]
categories: ["数据库"]
slug: "postgre"
draft: false
lastmod: "2011-03-23T15:55:05Z"
id: 972766
url: "https://xianxun.iteye.com/blog/972766"
---

在删除ipv6后出现postgre无法启动，查看日志

```java
2011-03-23 15:34:57 HKT LOG:  invalid IP address "::1": Unknown host
2011-03-23 15:34:57 HKT CONTEXT:  line 78 of configuration file "D:/Program Files/PostgreSQL/9.0/data/pg_hba.conf"
2011-03-23 15:34:57 HKT FATAL:  could not load pg_hba.conf
```

发现配置文件中ipv6地址为空。
  解决办法，在配置文件pg_hba.conf中将ipv6地址信息注释掉。连接便成功。