Odoo Two-time development tutorial "one" Odoo installation

Source: Internet
Author: User
Tags ip number

One, the two ways of installation:

1) Deb Package installation:

This installation works well for simplicity and does not require much manual intervention, and most plugins are covered in Deb. The specific steps are as follows:

1. Edit the/etc/apt/source.list file and add the Odoo source at the end: http://nightly.odoo.com/


Deb http://nightly.odoo.com/8.0/nightly/deb/./

2. sudo apt-get update updates the source list, this process may encounter a key validation failure problem, you can download the public key to Https://nightly.odoo.com/odoo.key, and then use sudo apt-key add command to add a key:

sudo apt-key add Odoo.key

3. After the source update is complete, you can easily install Odoo using the Apt-get method.

sudo Install Odoo

4. Now that Odoo should have been successfully installed on your system, here are some common configurations:

Odoo in Ubuntu 14.04 default installation path in the/usr/lib/python2.7/dist-packages/openerp directory, corresponding to the Addons-path path in/usr/lib/python2.7/ Dist-packages/openerp/addons

Odoo configuration file in/etc/odoo/odoo-server.conf

Service startup and shutdown can use the system's command format: sudo service Odoo Start/stop/restart

5.odoo-server.conf File Description:

Addons_path: Specify the path of multiple addons folders, it is recommended not to put the modules you developed with the system, it is best to create their own folders, and then add to the configuration file.

ADMIN_PASSWD: Managing Passwords

Db_user: Which account to use to access the database

2) Source code installation:

1. Drag the source code directly from GitHub using the Git tool: Https://github.com/odoo/odoo


sudo git clone https://

2. After downloading the code, go to the folder using the following command to install, due to GFW, many plug-ins are not installed automatically, need to install manually, this is the most cumbersome source installation place, patience of the students please slowly toss.

sudo Install

3. Once all the plugins have been installed, you can start using the following command:

./openerp-server-r odoo--addons-path='./addons'

Linux can be encapsulated in shell commands, eliminating the tedious steps of having to lose such a long command every time you start. Of course, the configuration file can also be specified above with the-C parameter.

4. Using Supervisor Service

Mainly used on the server, please visit http://my.oschina.net/wangbuke/blog/67431

Second, the installation and configuration of the database

Odoo uses PostgreSQL database, relatively small database, installation method See official website: http://www.postgresql.org/

Here we mainly talk about the configuration:

1. Odoo in the boot process error, view the log, no user odoo/openerp

You need to create users manually and give them administrator privileges:

sudo su postgrespsqlcreate user Odoo with Superuser

2. The port of the database is not accessible locally

No configuration enabled listening port, find/etc/postgres/9.x/main/postgresql.conf, remove comments from listen_addresses line, restart service

3. Remote access to the database, but always prompt for authentication errors

Edit the/etc/postgres/9.x/main/pg_hba.conf file to set different access rights for different IP number segments, Peer,md5,trust.




Odoo Two-time development tutorial "one" Odoo installation

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.