Install PostgreSQL9 on Ubuntu10.04 for OpenERP6.1

Source: Internet
Author: User
PostgreSQL9 has better compatibility with OpenERP6.1 than PostgreSQL8.4. To solve this problem, add "debhttp: // ppa.launchpad.net/pitti/postgresql/ubuntulucidmaindeb-srchttp://ppa.launchpad.n" to the software source.

PostgreSQL 9 has better compatibility with OpenERP 6.1 than PostgreSQL 8.4. Therefore, PostgreSQL 9 is installed in Ubuntu 10.04.
1. Add the following in the software source for Ubuntu 10.04:
Deb http://ppa.launchpad.net/pitti/postgresql/ubuntu lucid main
The deb-src http://ppa.launchpad.net/pitti/postgresql/ubuntu lucid main

Ubuntu 10.04 source code installation OpenERP-web 6.0.3 and Common Bugs to solve http://www.linuxidc.com/Linux/2012-02/54543.htm

OpenERP practice manual: interface culture http://www.linuxidc.com/Linux/2012-02/54541.htm

2. Run the following command to install Postgresql9:

Apt-get update
Apt-get installpostgresql-9.0

3. Create a PostgreSQL user for postgresql:
$ Adduser postgresql

4. Create a directory for PostgreSQL:
$ Su
$ Cd/usr/local
$ Mkdir pgsql
$ Cd pgsql
$ Mkdir data

5. Grant the permission to use the data directory to postgresql:
$ Chown postgresql:/usr/pgsql/data

6. initialize the database
$ Su postgresql
$ Cd/usr/lib/postgresql/9.0/bin
$./Initdb-D/usr/local/pgsql/data
The following message is displayed:
Success. You can now start the database server using:
Postgres-D/usr/local/pgsql/data
Or
Pg_ctl-D/usr/local/pgsql/data-l logfile start

7. Obviously, it prompts you to use
Postgres-D/usr/local/pgsql/data
Or
Pg_ctl-D/usr/local/pgsql/data-l logfile start
You can start the database with two lines of commands.

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.