Quantcast
Channel: Active questions tagged amazon-ec2 - Stack Overflow
Viewing all articles
Browse latest Browse all 29262

postgresql-setup command and postgres service not found on AWS Linux

$
0
0

I have been configuring an EC2 instance with postgreSQL according to the steps outlined in this tutorial. I am using AWS Linux 2018-03 and have installed postgres92 via the following:

$ sudo yum install postgresql postgresql-server postgresql-devel postgresql-contrib postgresql-docs

My understanding is that I should be able to directly initialize postgres with:

$ sudo postgresql-setup initdb

as noted in this related question (note: it would appear I need to conduct this step as well, I'm unable to run postgres as a service just yet). However, calls to postgresql-setup return:

sudo: postgresql-setup: command not found

I've also tried a find / postgresql-setup just to see if this is hanging around on the system somewhere, but this turns up nothing. I am unable to start postgres via sudo service postgres ... commands, as the service is not yet recognized. I have confirmed that the service is not running via:

$ sudo service postgres status

which just tells me that the service is unrecognized and I have also checked with a ps -ef | grep postgres, which also turns up nothing.

My question remains, how do I initialize postgres so that it can be recognized as a service given that postgresql-setup cannot be located? Thanks.


Viewing all articles
Browse latest Browse all 29262

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>