Tôi đã cài đặt sẵn postgres, postgres-9.3 và pgadmin trên cổng 5432 và 5433.làm thế nào để cài đặt Odoo 9 trên ubuntu?
gỡ cài đặt chúng sau đó cố gắng cài đặt odoo 9 bằng cách sử dụng http://openies.com/blog/install-openerp-odoo-9-on-ubuntu-server-14-04-lts/
hướng dẫn này.
nhưng khi tôi ttrying lệnh thực thi
createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt odoo
sau đó nó mang lại cho lỗi sau:
CreateUser: không thể kết nối với postgres cơ sở dữ liệu: không thể kết nối đến máy chủ: Không có tập tin hoặc thư mục Là máy chủ chạy cục bộ và chấp nhận kết nối trên ổ cắm miền Unix "/var/run/postgresql/.s.PGSQL.5432"?
sudo netstat -nltp | grep 5432 không hiển thị bất kỳ kết quả nào.
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
Bạn có thể nhận hướng dẫn cài đặt [ở đây] (http://openies.com/blog/install-openerp-odoo-9-on-ubuntu-server-14-04-lts/) hoặc [tại đây] (https: // www. getopenerp.com/install-odoo-9-on-ubuntu-14-04-lts/). –