Unable to init and run postgresql-12 on centos 8.2.2004

From: Vishal Agrawal <agrawal(dot)vishal(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Unable to init and run postgresql-12 on centos 8.2.2004
Date: 2020-06-21 03:27:09
Message-ID: CAFA+BR65am9d5_muXu+aVYmKSEvTYHoo7FEu-Om_bMVRYUN4Bw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

I'm trying to install postgresql 12 on CentOS 8.2 as following -

First I run docker container on the host -
# docker run --privileged -dit --name pgdg centos:8.2.2004 /sbin/init

Then inside the container, I run the commands given below -

# yum -y install glibc-langpack-en glibc-locale-source
# localedef -i en_US -f UTF-8 en_US.UTF-8

# dnf install
https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm

# dnf -qy module disable postgresql

# dnf install postgresql12-server

# /usr/pgsql-12/bin/postgresql-12-setup initdb

# systemctl enable postgresql-12

# systemctl start postgresql-12

Postgresql starts at this point...

However, when I try to stop it, it just hangs -

# systemctl stop postgresql-12 (hangs)

Can someone help how to resolve this?

Thanks,
Vishal

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Srinivasa T N 2020-06-21 11:12:31 Re: Unable to init and run postgresql-12 on centos 8.2.2004
Previous Message Peter J. Holzer 2020-06-20 16:28:52 Re: i am getting issue as FATAL: password authentication failed for user ' postgres' tried