我在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
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。