Postgresql unrecognized, even though it's installed

15,566

You need to install postgresql-server to get the System V init scripts and server binaries.

Share:
15,566

Related videos on Youtube

jgritty
Author by

jgritty

I'm just another Engineer, working in the Bay Area. Did I mention I've been at it for more than 10 years, but I'm still learning? You can see some of my spare time projects here: http://bitbucket.org/jgrigonis A thing my brother and I made: https://itunes.apple.com/us/app/gif-wallet/id995649863?mt=8

Updated on September 18, 2022

Comments

  • jgritty
    jgritty over 1 year

    Postgresql 8.4 seems to be installed properly, according to this:

    sudo yum install postgresql 
    Loaded plugins: product-id, refresh-packagekit, rhnplugin, security, subscription-manager 
    This system is not registered to Red Hat Subscription Management. You can
    use subscription-manager to register. 
    This system is receiving updates from RHN Classic or RHN Satellite. 
    Setting up Install Process 
    Package postgresql-8.4.13-1.el6_3.x86_64 already installed and latest version
    Nothing to do
    

    However, when I try to run this, it's unrecognized:

    $ sudo /sbin/service postgresql initdb
    postgresql: unrecognized service
    

    This is RHEL 6.3

  • jgritty
    jgritty about 11 years
    Of course... sudo yum install postgresql-server worked...