pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedInstall different directory issues
6+ messages / 3 participants
[nested] [flat]
* Install different directory issues
@ 2019-11-27 18:49 Thomas Carter <reckless2k2@gmail.com>
0 siblings, 1 reply; 6+ messages in thread
From: Thomas Carter @ 2019-11-27 18:49 UTC (permalink / raw)
To: pgsql-general
I installed Postgres to /app and now psql command not working under
Postgres user along with not knowing how to start the service like with a
traditional systemctl.
RHEL7
Postgres 10.11
Thanks for any help!
--
Tom Carter
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Install different directory issues
@ 2019-11-27 19:00 Adrian Klaver <adrian.klaver@aklaver.com>
parent: Thomas Carter <reckless2k2@gmail.com>
0 siblings, 1 reply; 6+ messages in thread
From: Adrian Klaver @ 2019-11-27 19:00 UTC (permalink / raw)
To: Thomas Carter <reckless2k2@gmail.com>; pgsql-general
On 11/27/19 10:49 AM, Thomas Carter wrote:
> I installed Postgres to /app and now psql command not working under
> Postgres user along with not knowing how to start the service like with
> a traditional systemctl.
Installed using source, package, other and from where?
>
> RHEL7
> Postgres 10.11
>
> Thanks for any help!
> --
> Tom Carter
--
Adrian Klaver
adrian.klaver@aklaver.com
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Install different directory issues
@ 2019-11-27 19:19 Thomas Carter <reckless2k2@gmail.com>
parent: Adrian Klaver <adrian.klaver@aklaver.com>
0 siblings, 2 replies; 6+ messages in thread
From: Thomas Carter @ 2019-11-27 19:19 UTC (permalink / raw)
To: Adrian Klaver <adrian.klaver@aklaver.com>; +Cc: pgsql-general
I installed using the Postgres Installer package available on the Postgres site. With the system setup, I had to install to /app. I choose to use the installer because yum wouldn’t allow for me to choose a different install destination.
I’m not sure if I would have the same issue right now if I used rpm —prefix.
Tom Carter
> On Nov 27, 2019, at 2:00 PM, Adrian Klaver <adrian.klaver@aklaver.com> wrote:
>
> On 11/27/19 10:49 AM, Thomas Carter wrote:
>> I installed Postgres to /app and now psql command not working under Postgres user along with not knowing how to start the service like with a traditional systemctl.
>
> Installed using source, package, other and from where?
>
>> RHEL7
>> Postgres 10.11
>> Thanks for any help!
>> --
>> Tom Carter
>
>
> --
> Adrian Klaver
> adrian.klaver@aklaver.com
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Install different directory issues
@ 2019-11-27 19:21 Justin <zzzzz.graf@gmail.com>
parent: Thomas Carter <reckless2k2@gmail.com>
1 sibling, 1 reply; 6+ messages in thread
From: Justin @ 2019-11-27 19:21 UTC (permalink / raw)
To: ; +Cc: pgsql-general
Hi Thomas
did you make sure the search paths and the paths in the config files were
updated to find postgresql files. I've seen this not get updated by the
install scripts
On Wed, Nov 27, 2019 at 2:20 PM Thomas Carter <reckless2k2@gmail.com> wrote:
> I installed using the Postgres Installer package available on the Postgres
> site. With the system setup, I had to install to /app. I choose to use the
> installer because yum wouldn’t allow for me to choose a different install
> destination.
>
> I’m not sure if I would have the same issue right now if I used rpm
> —prefix.
>
> Tom Carter
>
> > On Nov 27, 2019, at 2:00 PM, Adrian Klaver <adrian.klaver@aklaver.com>
> wrote:
> >
> > On 11/27/19 10:49 AM, Thomas Carter wrote:
> >> I installed Postgres to /app and now psql command not working under
> Postgres user along with not knowing how to start the service like with a
> traditional systemctl.
> >
> > Installed using source, package, other and from where?
> >
> >> RHEL7
> >> Postgres 10.11
> >> Thanks for any help!
> >> --
> >> Tom Carter
> >
> >
> > --
> > Adrian Klaver
> > adrian.klaver@aklaver.com
>
>
>
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Install different directory issues
@ 2019-11-27 19:28 Adrian Klaver <adrian.klaver@aklaver.com>
parent: Thomas Carter <reckless2k2@gmail.com>
1 sibling, 0 replies; 6+ messages in thread
From: Adrian Klaver @ 2019-11-27 19:28 UTC (permalink / raw)
To: Thomas Carter <reckless2k2@gmail.com>; +Cc: pgsql-general
On 11/27/19 11:19 AM, Thomas Carter wrote:
> I installed using the Postgres Installer package available on the Postgres site. With the system setup, I had to install to /app. I choose to use the installer because yum wouldn’t allow for me to choose a different install destination.
There is more then one installer, which one?
Do you have another instance of Postgres installed?
>
> I’m not sure if I would have the same issue right now if I used rpm —prefix.
>
> Tom Carter
>
>> On Nov 27, 2019, at 2:00 PM, Adrian Klaver <adrian.klaver@aklaver.com> wrote:
>>
>> On 11/27/19 10:49 AM, Thomas Carter wrote:
>>> I installed Postgres to /app and now psql command not working under Postgres user along with not knowing how to start the service like with a traditional systemctl.
>>
>> Installed using source, package, other and from where?
>>
>>> RHEL7
>>> Postgres 10.11
>>> Thanks for any help!
>>> --
>>> Tom Carter
>>
>>
>> --
>> Adrian Klaver
>> adrian.klaver@aklaver.com
>
--
Adrian Klaver
adrian.klaver@aklaver.com
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Install different directory issues
@ 2019-11-27 23:17 Justin <zzzzz.graf@gmail.com>
parent: Justin <zzzzz.graf@gmail.com>
0 siblings, 0 replies; 6+ messages in thread
From: Justin @ 2019-11-27 23:17 UTC (permalink / raw)
To: Thomas Carter <reckless2k2@gmail.com>; pgsql-general
I'm not that knowledgeable of Redhat paths
here is how i would start
first find the daemon or systemd postgresql.service files. on debian
these are located in /etc/init.d or /etc/systemd if the files exist
modify them to the correct paths if they do not exist the install went very
side-ways uninstall and and try again and read help files regarding the
command line switches to change the install path
If the the files are and paths are correct the something else went wrong.
either failed to register the daemon or initdb failed which will cause the
service to fail to start.
try to start postgres from the command prompt. it will throw errors
giving you an idea what the problem is
on debian logs are located in /var/log/postgresql/versionnumber/
On Wed, Nov 27, 2019 at 3:58 PM Thomas Carter <reckless2k2@gmail.com> wrote:
> Hi Justin,
> I expect this is the case since the traditional install will have
> everything “fall” into the right place. How would I correct since I’ve
> installed to the /app directory?
>
> Thanks for your help.
>
> On Wed, Nov 27, 2019 at 2:26 PM Justin <zzzzz.graf@gmail.com> wrote:
>
>> Hi Thomas
>>
>> did you make sure the search paths and the paths in the config files were
>> updated to find postgresql files. I've seen this not get updated by the
>> install scripts
>>
>> On Wed, Nov 27, 2019 at 2:20 PM Thomas Carter <reckless2k2@gmail.com>
>> wrote:
>>
>>> I installed using the Postgres Installer package available on the
>>> Postgres site. With the system setup, I had to install to /app. I choose to
>>> use the installer because yum wouldn’t allow for me to choose a different
>>> install destination.
>>>
>>> I’m not sure if I would have the same issue right now if I used rpm
>>> —prefix.
>>>
>>> Tom Carter
>>>
>>> > On Nov 27, 2019, at 2:00 PM, Adrian Klaver <adrian.klaver@aklaver.com>
>>> wrote:
>>> >
>>> > On 11/27/19 10:49 AM, Thomas Carter wrote:
>>> >> I installed Postgres to /app and now psql command not working under
>>> Postgres user along with not knowing how to start the service like with a
>>> traditional systemctl.
>>> >
>>> > Installed using source, package, other and from where?
>>> >
>>> >> RHEL7
>>> >> Postgres 10.11
>>> >> Thanks for any help!
>>> >> --
>>> >> Tom Carter
>>> >
>>> >
>>> > --
>>> > Adrian Klaver
>>> > adrian.klaver@aklaver.com
>>>
>>>
>>> --
> Tom Carter
>
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2019-11-27 23:17 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-11-27 18:49 Install different directory issues Thomas Carter <reckless2k2@gmail.com>
2019-11-27 19:00 ` Adrian Klaver <adrian.klaver@aklaver.com>
2019-11-27 19:19 ` Thomas Carter <reckless2k2@gmail.com>
2019-11-27 19:21 ` Justin <zzzzz.graf@gmail.com>
2019-11-27 23:17 ` Justin <zzzzz.graf@gmail.com>
2019-11-27 19:28 ` Adrian Klaver <adrian.klaver@aklaver.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox