PostgreSQL-9.6.3LOG: unrecognized configuration parameter "dynamic_shared_memory_type"((代

Posted 数据库小学生

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了PostgreSQL-9.6.3LOG: unrecognized configuration parameter "dynamic_shared_memory_type"((代相关的知识,希望对你有一定的参考价值。

 

报错如下:

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

[[email protected] ~]$  pg_ctl -D /opt/postgresql/data/ start
server starting
[[email protected] ~]$ 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

 

解决方式:

#给启动命令加上绝对路径,问题得到解决
[[email protected] ~]$ /opt/postgresql/bin/pg_ctl -D /opt/postgresql/data/ start
server starting
[[email protected] ~]$ 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文件权限问题
[[email protected] ~]$ /opt/postgresql/bin/pg_ctl -D /opt/postgresql/data/ start
_mcleanup: gmon.out: Permission denied
server starting
_mcleanup: gmon.out: Permission denied
[[email protected] ~]$ 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文件的权限
[[email protected] ~]$ chmod 777 /home/postgres/gprof/27265/gmon.out #关闭数据库 [[email protected] ~]$ /opt/postgresql/bin/pg_ctl stop -D /opt/postgresql/data/ #再次启动数据库 [[email protected] ~]$ /opt/postgresql/bin/pg_ctl -D /opt/postgresql/data/ start server starting [[email protected] ~]$ 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.3LOG: unrecognized configuration parameter "dynamic_shared_memory_type"((代的主要内容,如果未能解决你的问题,请参考以下文章

PostgreSQL-9.6.3使用pg_settings表查看参数的生效条件

源码安装PostgreSQL

如何在Webstorm中对抗大量未解决的变量警告

PostGreSQL数据库安装教程

UOJ #218. UNR #1火车管理

UOJ #390. UNR #3百鸽笼