postgresql – 如何在ubuntu上安装Odoo 9?

我在5432和5433端口预装了postgres,postgres-9.3和pgadmin.

卸载它们然后尝试使用http://openies.com/blog/install-openerp-odoo-9-on-ubuntu-server-14-04-lts/安装odoo 9

本教程.

但是当我试着执行命令时

createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt odoo

然后它给出以下错误:

createuser: could not connect to database postgres: could not connect
to server: No such file or directory Is the server running locally
and accepting connections on Unix domain socket
“/var/run/postgresql/.s.PGSQL.5432”?

sudo netstat -nltp | grep 5432没有显示任何结果.

的pg_hba.conf

# Database administrative login by Unix domain socket
local   all             postgres                                peer

# TYPE  DATABASE        USER            ADDRESS                 METHOD

# "local" is for Unix domain socket connections only
local   all             all                                     peer
# IPv4 local connections:
host    all             all             127.0.0.1/32            md5
# IPv6 local connections:
host    all             all             ::1/128                 md5
# Allow replication connections from localhost, by a user with the
# replication privilege.
#local   replication     postgres                                peer
#host    replication     postgres        127.0.0.1/32            md5
#host    replication     postgres        ::1/128                 md5
Bitnami ODOO,易于安装在您的机器中.

Download from Here

它与preinstall postgresql兼容.

本站公众号
   欢迎关注本站公众号,获取更多程序园信息
开发小院