RE: First time installing

From: "Ron Watkins" <rwatki(at)gmail(dot)com>
To: "'Frederick (dot)'" <nagemnna(at)gmail(dot)com>
Cc: <pgsql-novice(at)lists(dot)postgresql(dot)org>
Subject: RE: First time installing
Date: 2018-02-21 20:51:32
Message-ID: 2a0301d3ab55$c23f3b10$46bdb130$@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

I created a filesystem to put the postgres database into:

drwxr-xr-x. 3 postgres postgres 4096 Feb 15 11:02 /pgsql/

I tried the command shown below, but it's not working.

-bash-4.2$ postgres -D /usr/local/pgsql/data
-bash: postgres: command not found

-----Original Message-----
From: Frederick . [mailto:nagemnna(at)gmail(dot)com]
Sent: Wednesday, February 21, 2018 1:47 PM
To: Ron Watkins
Cc: pgsql-novice(at)lists(dot)postgresql(dot)org
Subject: Re: First time installing

maybe it is not enabled?

systemctl enable postgresql

if the service isn't installed maybe a package is missing. Try to start it using https://www.postgresql.org/docs/10/static/server-start.html
as the postgres user, to make sure postgres is OK and setup, then worry about the systemctl service.

as postgres:
postgres -D /usr/local/pgsql/data

On Wed, Feb 21, 2018 at 3:40 PM, Ron Watkins <rwatki(at)gmail(dot)com> wrote:
> # systemctl start postgresql
> Failed to start postgresql.service: Unit not found.
>
> Am I missing a step?
>
> -----Original Message-----
> From: Frederick . [mailto:nagemnna(at)gmail(dot)com]
> Sent: Wednesday, February 21, 2018 1:39 PM
> To: Ron Watkins
> Cc: pgsql-novice(at)lists(dot)postgresql(dot)org
> Subject: Re: First time installing
>
> Make sure the service is running.
>
> As root: systemctl start postgresql
>
> As a user:
> https://www.postgresql.org/docs/10/static/server-start.html
>
> On Wed, Feb 21, 2018 at 3:20 PM, Ron Watkins <rwatki(at)gmail(dot)com> wrote:
>> Trying to follow documentation. I installed RPM’s but unable to
>> connect to server…
>>
>> CentOS Linux release 7.4.1708 (Core)
>>
>>
>>
>> Package postgresql10-10.2-1PGDG.rhel7.x86_64 already installed and
>> latest version
>>
>> Package postgresql10-server-10.2-1PGDG.rhel7.x86_64 already installed
>> and latest version
>>
>>
>>
>> # su - postgres
>>
>> -bash-4.2$ psql
>>
>> psql: could not connect to server: No such file or directory
>>
>> Is the server running locally and accepting
>>
>> connections on Unix domain socket
>> "/var/run/postgresql/.s.PGSQL.5432"?
>>
>>
>>
>> There are no files under /var/run/post*
>>
>>
>>
>> What am I missing here?
>

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Ron Watkins 2018-02-21 20:51:50 RE: First time installing
Previous Message Keith 2018-02-21 20:48:15 Re: First time installing