首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Postgres-XC上开始获取sudo:未知用户: postgres sudo: unable to initialize policy plugin?

在Postgres-XC上开始获取sudo:未知用户: postgres sudo: unable to initialize policy plugin?
EN

Stack Overflow用户
提问于 2016-09-01 21:01:29
回答 1查看 6.8K关注 0票数 2

已安装Postgres-XC

代码语言:javascript
复制
 $>sudo apt-get install postgres-xc

然后

代码语言:javascript
复制
$ postgres -V
postgres (PostgreSQL) 9.2.4

在此之后,我尝试使用以下方法启动Postgres服务器。

方法1

代码语言:javascript
复制
$>sudo postgres --coordinator -D DN2

"root" execution of the PostgreSQL server is not permitted.
The server must be started under an unprivileged user ID to prevent
possible system security compromise.  See the documentation for
more information on how to properly start the server.

method2

代码语言:javascript
复制
$ sudo -i -u postgres

sudo: unknown user: postgres
sudo: unable to initialize policy plugin

并安装了pgadmin3也从那里我想连接Postgres服务器。

启动Postgres-XC服务器的正确方法是什么?

上述步骤是否正确?如果是,它有什么问题?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-09-02 15:18:27

要安装Postgres,最好的方法是使用enterpriseDB。

从下面的URL查看一些下载程序安装程序部分。

代码语言:javascript
复制
https://www.postgresql.org/download/linux/ubuntu/

下载Postgres

代码语言:javascript
复制
http://www.enterprisedb.com/products-services-training/pgdownload#linux

安装Postgres

代码语言:javascript
复制
http://tutorialforlinux.com/2014/02/20/how-to-install-latest-postgresql-9-x-on-linux-mint-16-petra-3264bit-linux-easy-guide/
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/39272265

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档