在 Postgres-XC 上开始获取 sudo: unknown user: postgres sudo: unable to initialize policy plugin?
On Postgres-XC start getting sudo: unknown user: postgres sudo: unable to initialize policy plugin?
已安装 Postgres-XC
$>sudo apt-get install postgres-xc
然后
$ postgres -V
postgres (PostgreSQL) 9.2.4
在此之后,我尝试使用以下方法启动 Postgres 服务器。
方法一
$>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.
方法2
$ sudo -i -u postgres
sudo: unknown user: postgres
sudo: unable to initialize policy plugin
并从那里安装了 pgadmin3 我想连接 Postgres 服务器。
启动 Postgres-XC 服务器的正确方法是什么?
以上程序是否正确?如果是,它有什么问题?
要安装 Postgres,最好的方法是使用 enterpriseDB。
从下面查看一些下载安装程序部分URL。
https://www.postgresql.org/download/linux/ubuntu/
下载 Postgres
http://www.enterprisedb.com/products-services-training/pgdownload#linux
安装 Postgres
http://tutorialforlinux.com/2014/02/20/how-to-install-latest-postgresql-9-x-on-linux-mint-16-petra-3264bit-linux-easy-guide/
已安装 Postgres-XC
$>sudo apt-get install postgres-xc
然后
$ postgres -V
postgres (PostgreSQL) 9.2.4
在此之后,我尝试使用以下方法启动 Postgres 服务器。
方法一
$>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.
方法2
$ sudo -i -u postgres
sudo: unknown user: postgres
sudo: unable to initialize policy plugin
并从那里安装了 pgadmin3 我想连接 Postgres 服务器。
启动 Postgres-XC 服务器的正确方法是什么?
以上程序是否正确?如果是,它有什么问题?
要安装 Postgres,最好的方法是使用 enterpriseDB。
从下面查看一些下载安装程序部分URL。
https://www.postgresql.org/download/linux/ubuntu/
下载 Postgres
http://www.enterprisedb.com/products-services-training/pgdownload#linux
安装 Postgres
http://tutorialforlinux.com/2014/02/20/how-to-install-latest-postgresql-9-x-on-linux-mint-16-petra-3264bit-linux-easy-guide/