代码之家  ›  专栏  ›  技术社区  ›  Jayan

postgres-在管理员帐户下启动进程

  •  3
  • Jayan  · 技术社区  · 14 年前

    --显示的错误是---(不是真正的错误,它是一个安全功能)

    The server must be started under an unprivileged user ID to prevent
    possible system security compromises.  See the documentation for
    more information on how to properly start the server.
    

    当前的解决方法是创建普通用户并在其下运行进程。我所看到的是快速启动数据库、执行一些操作并在构建过程中关闭它的方法。

    1 回复  |  直到 14 年前
        1
  •  4
  •   Jayan    9 年前

    (几年后)

    Postgres带有一个控制程序。详见 official documentation

    pg_ctl start "args"