报错如下:

输入如下命令启动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

解决方式:

#给启动命令加上绝对路径,问题得到解决
[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!

2017-09-01

【PostgreSQL-9.6.3】LOG: unrecognized configuration parameter dynamic_shared_memory_type相关推荐

  1. 【PostgreSQL+PostGIS离线安装】2天的踩坑及问题解决经验分享(含安装文件postgresql-9.5.9+postgis-2.2.3+多个依赖及测试SQL)

    资源分享[有的安装包比较难下载] 链接:https://pan.baidu.com/s/1XPUoyReHOKyjNINpcyrMRQ 提取码:9f26 包含资源: 1. postgresql-9.5 ...

  2. 【PostgreSQL 14 安装错误】Problem running post-install step. Installation may not complete correctly...

    解决方法1: j​​​​​​​postgresql安装之最后一步出现problem running post-install step. Installation may not complete c ...

  3. 【postgresql初始化失败】initdb: invalid locale settings; check LANG and LC_* environment variables

    The files belonging to this database system will be owned by user "postgres". This user mu ...

  4. 【Postgresql】触发器某个字段更新时执行,行插入或更新执行

    [Postgresql]触发器某个字段更新时执行,行插入或更新执行 1. postgresql触发器 2. 触发器的创建及示例 1) 字段更新时,触发 2) 行插入或更新时,触发 3. 触发器的删除 ...

  5. 【postgresql初始化失败】initdb: invalid locale settings; check LANG and LC_* environment variables(之二)

    背景 此前,曾写过一篇文章,解决描述的问题. [postgresql初始化失败]initdb: invalid locale settings: check LANG and LC_* environ ...

  6. 【PostgreSQL实战】之还原备份文件

    [原创,转载请说明] 本文讲述PostgreSql数据备份后的还原操作.上一篇讲到了在项目实战中,可采用PostgreSql自带工具pg_dump,结合shell以及定时任务来自动备份数据库文件.[P ...

  7. 【Lombok】@Log | 如何优雅的进行日志记录

    文章目录 一.简介 二.示例比较 1. Lombok 写法 2. Java 标准写法 三.支持的配置项 四.附属说明 参考文献 一.简介 在lombok v0.10中添加了各种@Log的变体.lomb ...

  8. 【Android 10 源码】深入理解 Omx 初始化

    MediaCodec 系列文章: [Android 10 源码]深入理解 MediaCodec 硬解码初始化 [Android 10 源码]深入理解 Omx 初始化 [Android 10 源码]深入 ...

  9. 玩转Python必备:史上最全的Python库,【值得收藏,事半功倍】

    库名称     简介 Chardet字符编码探测器,可以自动检测文本.网页.xml的编码. colorama主要用来给文本添加各种颜色,并且非常简单易用. Prettytable主要用于在终端或浏览器 ...

最新文章

  1. 二调建设用地地类代码_二调土地地类代码表
  2. php过滤特殊字符mysql攻击_php – MySQL在特殊字符处切断字符串
  3. MySQL官方提供的测试数据库脚本和数据文件下载
  4. jQuery的概念、用法、常见面试题详解
  5. 使用qrcode类制作二维码
  6. Flowable 数据库表结构 ACT_HI_ACTINST
  7. Linux内核分析 - 网络[十二]:UDP模块 - 收发
  8. couchbase php,升级PHP7时couchbase扩展导入的bug
  9. Python中的原始字符串
  10. 为什么要对数据仓库分层
  11. png和ico格式互相转换工具
  12. 苹果手机服务器暂时不可用,服务暂时不可用【操作途径】
  13. 解决报错 We‘re sorry but doesn‘t work properly without JavaScript enabled. Please enable it to continue.
  14. 卷积神经网络中特征图大小计算公式总结
  15. auto-springboot
  16. “五四”青年节,我们采访了十位驭势青年
  17. JavaScript 编程题
  18. 神经网络加深和加宽的影响
  19. # 这是一级标题 ## 这是二级标题
  20. 汇编入门(长文多图,流量慎入!!!)

热门文章

  1. Error: cannot allocate vector of size 88.1 Mb问题
  2. Linux system函数返回值
  3. [HTML5实现人工智能]小游戏《井字棋》发布,据说IQ上200才能赢
  4. C++ ---------- map的使用
  5. Android开机自动启动程序设置
  6. explain分析sql效果
  7. shell实现自动部署两台tomcat项目Ⅱ
  8. 1.数据结构笔记学习--预备知识
  9. manifest分析
  10. moosefs即将发布新版