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

来源:互联网 发布:pdf 编辑软件 免费 编辑:程序博客网 时间:2024/05/20 14:26

报错如下:

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

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

 

解决方式:

复制代码
#给启动命令加上绝对路径,问题得到解决[postgres@drz ~]$ /opt/postgresql/bin/pg_ctl -D /opt/postgresql/data/ startserver starting[postgres@drz ~]$ LOG:  database system was shut down at 2017-08-11 11:22:34 CSTLOG:  MultiXact member wraparound protections are now enabledLOG:  database system is ready to accept connectionsLOG:  autovacuum launcher started#如果输入绝对路径启动时像我一样出现gmon.out文件权限问题[postgres@drz ~]$ /opt/postgresql/bin/pg_ctl -D /opt/postgresql/data/ start_mcleanup: gmon.out: Permission deniedserver starting_mcleanup: gmon.out: Permission denied[postgres@drz ~]$ LOG:  database system was shut down at 2017-08-11 11:22:55 CSTLOG:  MultiXact member wraparound protections are now enabledLOG:  database system is ready to accept connectionsLOG:  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/ startserver starting[postgres@drz ~]$ LOG:  database system was shut down at 2017-08-11 11:30:30 CSTLOG:  MultiXact member wraparound protections are now enabledLOG:  database system is ready to accept connectionsLOG:  autovacuum launcher started
复制代码

 

The End!

2017-09-01