This question has been flagged
2 Replies
1577 Views

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
Discard
Author Best Answer

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
Discard
Best Answer

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
Discard