LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1128|回复: 2

初次接触数据库,就遇到问题。 postgresql不能启动

[复制链接]
发表于 2005-8-16 00:32:18 | 显示全部楼层 |阅读模式
昨天新安装debian系统,tasksel中选择了SQL服务,结果就默认安装上了POSTGRESQL。 我想尝试一下,可是启动它的时候遇到问题。
# /etc/init.d/postgresql start
Starting PostgreSQL database server: postmaster(FAILED)
ERROR: ERROR: PostgreSQL postmaster did not start because of an unknown reason.
PostgreSQL's init script (/etc/init.d/postgresql) attempted
to start the postmaster, however, this failed because of an unknown
reason.

This should not happen and is a serious problem. Please examine the
situation (please take a look at the log files). If you know the
reason why it failed and, then please file a bug report to Debian
(unless the reason is something obvious like a full disk).

Debian PostgreSQL

实际中用的时候是这样的错误提示:
# createdb lish_test
createdb: 无法联接到数据库 template1: 无法联接到服务器: 8\uffff÷@\\u07b7
服务器是否在本地运行并且在 Unix 域套接字
        "/var/run/postgresql/.s.PGSQL.5432"上准备接受联接?
#

系统日志是这样的:
# vi /var/log/postgresql/postgres.log
FATAL:  XX000: failed to initialize lc_messages to ""
LOCATION:  InitializeGUCOptions, guc.c:1867

请有经验的活计明示,多谢。
发表于 2005-8-16 11:49:19 | 显示全部楼层
dpkg -p postgres postgresql-7.4  postgresql-client-7.4
apt-get install postgres postgresql-7.4  postgresql-client-7.4
重新安装后再试验
回复 支持 反对

使用道具 举报

发表于 2005-8-16 23:11:59 | 显示全部楼层
用postgresql 8吧,7太老了。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表