How do I configure OE when the server starts the dual Nic mode?

Source: Internet
Author: User

How do I configure OE when the server starts the dual Nic mode?

As we all know, in the green OE default configuration, db_host and port should be 127.0.0.1 and 5432, which refer to the address and port of the database (pg) connected to OE.

OK, no problem.

When the server is set to a dual Nic or multiple IP addresses, the problem arises. In this case, OE can be started normally, or PG can, but the 505 error will be prompted when OE is enabled.

Why?

OE points to pg address 127.0.0.1 at this time, and it is not explicitly connected to databases. Of course, if you are willing to manually modify the source code about the database in OE, you can also.

Let's change it. I won't.

I did this:

Step 1: Modify the openerp-server.conf to point to an IP address, which must not be 127.0.0.1.

Step 2: Modify the listening mode in postgresql. conf to all; otherwise, pg will start 127.0.0.1 by default.

Modification content:

#-Connection Settings-listen_addresses = '*'
The listener before modification is as follows:

TCP 127.0.0.1: 5432 0.0.0.0: 0 LISTENING

Step 3: Modify pg_cmd.conf and add the Trust List.

Add content:

Host Database Name: openerp 10.0.3.0/24 trust
Or specify the IP address/32 trust to which the host all points

The modified listener is like this.

TCP 0.0.0.0: 5432 0.0.0.0: 0 LISTENING

OK, start the pg service, start OE again, and log on normally.


-- EOF


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.