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

 

報錯以下:sql

輸入以下命令啓動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

 

解決方式:post

#給啓動命令加上絕對路徑,問題獲得解決 [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!spa

2017-09-01postgresql

相關文章
相關標籤/搜索