"PostgreSQL-9.6.3" log:unrecognized configuration parameter "Dynamic_shared_memory_type"

Source: Internet
Author: User
Tags postgresql file permissions






The error is as follows:



Enter the following command when starting the PG database, error:


 
 
[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


How to resolve:


 
#Add the absolute path to the startup command, the problem is solved
[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

#If you enter the absolute path when starting, gmon.out file permissions issue like me
[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

#则Modify the permissions of the gmon.out file
[postgres@drz ~]$ chmod 777 /home/postgres/gprof/27265/gmon.out

#Close the database
[postgres@drz ~]$ /opt/postgresql/bin/pg_ctl stop -D /opt/postgresql/data/

#Start the database again
[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"


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.