码迷,mamicode.com
首页 > 数据库 > 详细

【PostgreSQL-9.6.3】LOG: unrecognized configuration parameter "dynamic_shared_memory_type"

时间:2017-09-02 01:10:29      阅读:604      评论:0      收藏:0      [点我收藏+]

标签:数据库   clean   post   font   new   multi   shared   har   shu   

 

报错如下:

输入如下命令启动PG数据库时,报错:

[postgres@drz ~]$  pg_ctl -D /opt/postgresql/data/ start
server starting
[postgres@drz ~]$ LOG:  unrecognized configuration parameter "dynamic_shared_memory_type" in file "/opt/postgresql/data/postgresql.conf" line 127
FATAL:  configuration file "/opt/postgresql/data/postgresql.conf" contains errors

 

解决方式:

#给启动命令加上绝对路径,问题得到解决
[postgres@drz ~]$ /opt/postgresql/bin/pg_ctl -D /opt/postgresql/data/ start
server starting
[postgres@drz ~]$ LOG:  database system was shut down at 2017-08-11 11:22:34 CST
LOG:  MultiXact member wraparound protections are now enabled
LOG:  database system is ready to accept connections
LOG:  autovacuum launcher started

#如果输入绝对路径启动时像我一样出现gmon.out文件权限问题
[postgres@drz ~]$ /opt/postgresql/bin/pg_ctl -D /opt/postgresql/data/ start
_mcleanup: gmon.out: Permission denied
server starting
_mcleanup: gmon.out: Permission denied
[postgres@drz ~]$ LOG:  database system was shut down at 2017-08-11 11:22:55 CST
LOG:  MultiXact member wraparound protections are now enabled
LOG:  database system is ready to accept connections
LOG:  autovacuum launcher started  

#则要修改gmon.out文件的权限
[postgres@drz ~]$ chmod 777 /home/postgres/gprof/27265/gmon.out #关闭数据库 [postgres@drz ~]$ /opt/postgresql/bin/pg_ctl stop -D /opt/postgresql/data/ #再次启动数据库 [postgres@drz ~]$ /opt/postgresql/bin/pg_ctl -D /opt/postgresql/data/ start server starting [postgres@drz ~]$ LOG: database system was shut down at 2017-08-11 11:30:30 CST LOG: MultiXact member wraparound protections are now enabled LOG: database system is ready to accept connections LOG: autovacuum launcher started

 

The End!

2017-09-01

【PostgreSQL-9.6.3】LOG: unrecognized configuration parameter "dynamic_shared_memory_type"

标签:数据库   clean   post   font   new   multi   shared   har   shu   

原文地址:http://www.cnblogs.com/NextAction/p/7465505.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!