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"