有人安装过PostgreSQL 9.0吗?
如题。
有没有完整的文档?
小弟安装之后运行postmaster的时候报如下错误,不知道是不是很低级的错误。。。 。。。
启动 postmaster
bash-3.00$ postmaster -D /var/lib/pgsql/data/mydata/
日志: 数据库上次关闭时间为 2011-02-10 12:05:10 CST
日志: checkpoint 记录位置在 0/33F248
日志: redo record is at 0/33F248; undo record is at 0/0; shutdown TRUE
日志: 下一个事物 ID: 565; 下一个 OID: 10794
日志: next MultiXactId: 1; next MultiXactOffset: 0
日志: 数据库系统准备就绪
日志: transaction ID wrap limit is 2147484146, limited by database "postgres"
^C日志: 接收到快速 (fast) 停止请求
日志: 正在关闭
日志: 数据库系统已关闭
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
回复 3# 非凡公子
谢谢你!晚上回家的时候我再试试!~
官方有文档的吧,我在 sol10下装9.0 64bit时写的备忘
1.下载 postgresql
http://www.postgresql.org/ftp/bi ... ris/solaris10/i386/
2.解压安装
groupadd -g 90 postgres
useradd -u 90 -g postgres -d /export/home/postgres -s /usr/bin/bash postgres
passwd postgres
密码设为:post
cd /export/home
bzcat /tmp/postgresql-9.0.0-S10.i386-64.tar.bz2 | tar -xvf -
3.配制环境变量
PGLIB=$HOME/pgsql/lib/64;export PGLIB
PGDATA=$HOME/data;export PGDATA
PATH=$PATHHOME/pgsql/bin/64;export PATH
umask 022
4.初始化数据库
#su - postgres
$ln -s 9.0-pgdg pgsql
$cd pgsql/bin/64
$ ./initdb --encoding=utf8 -D $PGDATA
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.
The database cluster will be initialized with locale C.
The default text search configuration will be set to "english".
creating directory /export/home/postgres/data ... ok
creating subdirectories ... ok
selecting default max_connections ... 100
selecting default shared_buffers ... 32MB
creating configuration files ... ok
creating template1 database in /export/home/postgres/data/base/1 ... ok
initializing pg_authid ... ok
initializing dependencies ... ok
creating system views ... ok
loading system objects' descriptions ... ok
creating conversions ... ok
creating dictionaries ... ok
setting privileges on built-in objects ... ok
creating information schema ... ok
loading PL/pgSQL server-side language ... ok
vacuuming database template1 ... ok
copying template1 to template0 ... ok
copying template1 to postgres ... ok
WARNING: enabling "trust" authentication for local connections
You can change this by editing pg_hba.conf or using the -A option the
next time you run initdb.
Success. You can now start the database server using:
./postgres -D /export/home/postgres/data
or
./pg_ctl -D /export/home/postgres/data -l logfile start
cd /export/home/postgres/pgsql/bin/64
./pg_ctl -D $PGDATA -l $PGDATA/pg_log start
cat pgstart.sh
#!/bin/sh
./pg_ctl -D $PGDATA -l $PGDATA/pg_sql.log start
到pqsql版面问问?