Odoo (openerp) on Windows Azure-2. Deploying Odoo on Ubuntu virtual machines (OPENERP)

Source: Internet
Author: User
Tags postgresql

The steps to create a virtual machine are not mentioned here, please refer to the previous blog post.

First update the Ubuntu system with the following command:

1. sudo apt-get update

2. Sudo apt-get upgrade

3. Sudo apt-get dist-upgrade

Then use your familiar text editor to edit the/etc/apt/sources.list

7.0 Stable Version

Deb http://nightly.openerp.com/7.0/nightly/deb/./

Development version, should be version 8.0

Deb http://nightly.odoo.com/trunk/nightly/deb/./
Using sudo apt-get update
sudo apt-get install OpenERP
Then wait for the installation to finish!
One problem with this installation is that the PostgreSQL database will be installed on the system. Of course we're going to have to remove it at the end.
This kind of installation method is more suitable for production mode use. After installation, some of the required components are automatically installed, and some parameters are automatically configured.
After the installation is complete, enter: Openerp-server, you can.
Next we will use the following command to generate the configuration file
sudo openerp-server–s–c <config_file_path>
Edit the section about database connections in the configuration file:
Db_host = xxx.xxx.xxx.xxx
Db_password = xxxxxxxxxxx
Db_port = 5432
Db_user = xxxxxxxx
The configuration file is best stored under/etc/openerp/, and we'll use it next.
After the configuration file has been modified, we use OPENERP-SERVER–C <config_file_path> run the system.
There is a small hole in it, the ownership of this configuration file should be changed to the system login user, if not modified, when the boot from the startup settings, will cause an error.
Now let's edit the/etc/init.d/openerp and check if some of these configurations are correct.
When the file is checked, use Sudo/etc/init.d/openerp start to check if the system is functioning properly.
After normal, please use the sudo update-rc.d openerp defaults command to set the OPENERP system to boot from boot.
Finally, let's use the following command to delete the native PostgreSQL database:
Dpkg–purge postgresql-9.3
 The number behind is the version number of the PostgreSQL database. 
Related Article

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.