One - One Code All

Blog Content

postgresql加载配置报错: unable to run postgres with pg_ctl

PostgreSQL   2017-10-20 20:35:01

postgresql加载配置报错: unable to run postgres with pg_ctl


使用-o参数。

 -o options
          Specifies options to be passed directly to the postgres command.

          The options should usually be surrounded by single or double quotes
          to ensure that they are passed through as a group.

完整命令:

/usr/lib/postgresql/9.3/bin/pg_ctl start \
      "-D" "/var/lib/postgresql/9.3/main" \
      "-o -c config_file=/etc/postgresql/9.3/main/postgresql.conf"



上一篇:pymysql.err.InterfaceError: (0, '')解决办法db.ping(reconnect=True)
下一篇:NLP之中文近义词工具包Synonyms

The minute you think of giving up, think of the reason why you held on so long.