免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 8232 | 回复: 2

could not reattach to shared memory [复制链接]

论坛徽章:
0
发表于 2007-08-07 23:59 |显示全部楼层
windows xp professional 版本2002 sp2
安装pg8.2.4,启动出现以下错误:

C:\Program Files\PostgreSQL\8.2\bin>runas /user:postgres "cmd"
输入 postgres 的密码:
试图将 cmd 作为用户 "D1ECF4C0\postgres" 启动...

C:\WINDOWS\system32>cd "c:\Program Files\PostgreSQL\8.2\bin"

C:\Program Files\PostgreSQL\8.2\bin>pg_ctl -D "../data" start
server starting

C:\Program Files\PostgreSQL\8.2\bin>LOG:  unrecognized win32 error code: 487
FATAL:  could not reattach to shared memory (key=5432001, addr=02760000): Invali
d argument
LOG:  startup process (PID 2360) exited with exit code 1
LOG:  aborting startup due to startup process failure

论坛徽章:
0
发表于 2007-08-08 00:09 |显示全部楼层
max_connections = 50
shared_buffers = 8MB
调整以上参数,还是出现相同错误。

关闭了nod32,360等所有的安全软件,还是出现相同错误。

只差没重装OS了。对了,我的电脑使用的深度xp sp2 5.7精简版 。

论坛徽章:
0
发表于 2007-08-08 00:18 |显示全部楼层
C:\Program Files\PostgreSQL\8.2\bin>initdb -D "C:\Program Files\PostgreSQL\8.2\data"
属于此数据库系统的文件宿主为用户 "postgres".
此用户也必须为服务器进程的宿主.
数据库簇将带有 locale Chinese_People's Republic of China.936 初始化.

修复已存在目录 C:/Program Files/PostgreSQL/8.2/data 的权限 ... 成功
creating subdirectories ... 成功
选择默认最大联接数 (max_connections) ... 100
selecting default shared_buffers/max_fsm_pages ... 32MB/204800
创建配置文件 ... 成功
在 C:/Program Files/PostgreSQL/8.2/data/base/1 中创建 template1 数据库 ... 成功
initializing pg_authid ... 成功
initializing dependencies ... 成功
创建系统视图 ... 成功
loading system objects' descriptions ... 成功
创建字符集转换 ... 成功
对内建对象设置权限 ... 成功
创建信息模式 ... 成功
清理数据库 template1 ... 成功
拷贝 template1 到 template0 ... 成功
copying template1 to postgres ... 成功

警告: 为本地连接启动了 "trust" 认证.
你可以通过编辑 pg_hba.conf 更改或你下
次运行 initdb 时使用 -A 选项.

Success. You can now start the database server using:

    "postgres" -D "C:/Program Files/PostgreSQL/8.2/data"
or
    "pg_ctl" -D "C:/Program Files/PostgreSQL/8.2/data" -l logfile start


C:\Program Files\PostgreSQL\8.2\bin>pg_ctl -D "C:/Program Files/PostgreSQL/8.2/data" start
server starting

C:\Program Files\PostgreSQL\8.2\bin>LOG:  unrecognized win32 error code: 487
FATAL:  could not reattach to shared memory (key=5432001, addr=02760000): Invali
d argument
LOG:  startup process (PID 3520) exited with exit code 1
LOG:  aborting startup due to startup process failure

C:\Program Files\PostgreSQL\8.2\bin>"postgres" -D "C:/Program Files/PostgreSQL/8
.2/data"
LOG:  unrecognized win32 error code: 487
FATAL:  could not reattach to shared memory (key=5432001, addr=02760000): Invali
d argument
LOG:  startup process (PID 424) exited with exit code 1
LOG:  aborting startup due to startup process failure

C:\Program Files\PostgreSQL\8.2\bin>
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP