在 ubuntu 上启动 postgresql 服务器时出错

xai*_*ain 6 postgresql ubuntu startup

我最近停止了 postgresql 数据库(运行良好),几天后,当我尝试启动它时,出现错误:

2011-01-03 23:56:27 CLST LOG:  could not translate host name "localhost", service "5432" to address: Name or service not known
2011-01-03 23:56:27 CLST WARNING:  could not create listen socket for "localhost"
2011-01-03 23:56:27 CLST FATAL:  could not create any TCP/IP sockets
Run Code Online (Sandbox Code Playgroud)

我正在运行 Ubuntu 9.1,我使用的是平常的

/etc/init.d/postgresql-8.4 start and stop
Run Code Online (Sandbox Code Playgroud)

任何提示?

Sab*_*lfy 6

检查 /etc/hosts 上的所有权和权限?

在配置中指定 127.0.0.1 以隔离问题。