Sometimes after a fresh PostgreSQL install if we want to start or stop from PostgreSQL rather than controlling the PostgreSQL instance start and stop from the root. And when we run the pg_ctl from the command prompt as a PostgreSQL Linux user we see the error bash: pg_ctl: command not foundโฆ
In this article, lets learn how to fix it
As PostgreSQL check your pg base directory
And now add this PostgreSQL to the Linux path so that itโs always available. I would recommand to create a postgresql env. file so that it more easy to handle rather than messing with other systems runing on linux operating system.
see detailed stpes:
Top comments (0)