-1

I am having a very hard time... just installing PostGresSQL, getting the server running on AL2023, getting my Nest.js app to connect to it.

When I was on a mac everything just worked and seemed so simple. Is there a resource which is bullet proof?

Sorry but my experience on a Dell running AL2023 is awful.

When I tried: psql --version

I get: psql (PostgreSQL) 15.0

Then I tried postgresql-setup --initdb

System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
FATAL: no db datadir (PGDATA) configured for 'postgresql.service' unit

please help!

Antonio Pavicevac-Ortiz
  • 7,239
  • 17
  • 68
  • 141
  • Wouldn't one generally run amazon linux on AWS EC2? What does it mean that you are running it on "a Dell"? It seems like your OS install is somehow screwed up. – jjanes Aug 05 '23 at 02:06
  • 1) This question is not about programming but about system administration and does not belong on this site. Instead it should be here https://dba.stackexchange.com/ 2) When you move you will need to provide more information: a) How did you install Postgres? b) Where is `postgresql-setup` coming from? c) Why are you using AL2023 and not something like Ubuntu or Centos? FYI, this `System has not been booted with systemd as init system` would seem to be a big factor in your issues. – Adrian Klaver Aug 05 '23 at 15:07

0 Answers0