Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
3043 Vues

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
Ignorer
Auteur Meilleure réponse

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
Ignorer
Meilleure réponse

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
Ignorer