Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
3074 Visualizzazioni

I have a different odoo server with postgres database, how do I run the service postgresql.service

For notes :

192.x.x.100 Odoo Server

192.x.x.83 Postgres Server


Thanks

Avatar
Abbandona
Autore Risposta migliore

db_host = 192.x.x.83
db_port = 5432
db_user = rdsOdoo
db_password = False
addons_path = /opt/odoo/odoo/addons,/opt/odoo/odoo/custom-addons
xmlrpc_port = 8069


This is my configuration file in odoo server, for IP PostgreSQL has been added to configuration file

But if i want to enable the service, the error results

Failed to start odoo.service: Unit postgresql.service not found.


Thanks

Avatar
Abbandona
Risposta migliore

Hi,

You can specify the PostgreSQL details in the odoo configuration file, in the db_host specify IP of the postgres server, and specify db_port, db_user and password.

db_host = 192.x.x.83


also make sure the PostgreSQL configuration will accept connection from 192.x.x.100 

Thanks

Avatar
Abbandona