RHQ, the common services project for infrastructure management

  Dashboard > RHQ-Project > ... > Installing > PostgreSQL Quick Start Installation Guide
  RHQ-Project Log In | Sign Up   View a printable version of the current page.  
  PostgreSQL Quick Start Installation Guide
Added by John Mazzitelli , last edited by Heiko W. Rupp on May 20, 2008  (view change)
Labels: 
(None)

PostgreSQL Quick Start Installation Guide

  1. Download the latest release of PostgreSQL 8 (Note: Postgres 8.3.0 is not recommended).
  2. Install it.
    • For UNIX: Build and install it as described here: http://www.postgresql.org/docs/8.2/static/install-short.html.
      • Another way to install PostgreSQL is via a package installer such as yum on Fedora. Depending on how you installed PostgreSQL, you may have to configure its authentication mechanisms for the rest of the following commands to work. One quick way to get PostgreSQL up and running is to edit its data/pg_hba.conf file such that it trusts all users on the box in which it is installed. You do this by having lines like the following in that file:
        local all all              trust
        host  all all 127.0.0.1/32 trust

        You may also want to change the PostgreSQL user's password; as root execute:

        passwd postgres
    • For Windows: Install it as described here: http://pginstaller.projects.postgresql.org/,
  3. Start PostgreSQL:
    • For UNIX:
      service postgresql start

      You may find that you have to initialize the database if this is the very first time you are starting a newly installed PostgreSQL. If the above start command fails, try this first and then execute the start command afterwards:

      service postgresql initdb
    • For Windows:
      net start pgsql-8.2
  4. Create a PostgreSQL role named rhqadmin with password rhqadmin:
    cd <postgres-install-dir>
    createuser -h 127.0.0.1 -p 5432 -U postgres -S -D -R rhqadmin
  5. Create a PostgreSQL database named rhq, specifying the rhqadmin role as the owner:
    cd <postgres-install-dir>
    createdb -h 127.0.0.1 -p 5432 -U postgres -O rhqadmin rhq
  6. If you are going to use this PostgreSQL installation for more than just demo purposes or simple development, go to the PostgreSQL Preparation page for more advanced settings you'll need to prepare this PostgreSQL for production use with RHQ.

It seems to me that step 4 should include the "-P" switch so the user can set the password to "rhqadmin".

Posted by Anonymous at May 13, 2008 16:13
Powered by a free Atlassian Confluence Open Source Project License granted to Hyperic HQ. Evaluate Confluence today.
Powered by Atlassian Confluence 2.7.1, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators