Answer the question
In order to leave comments, you need to log in
Binding file execution to initialization in terminal?
There are several variables that need to be permanently set after Posgresql initialization:
export PATH=/usr/local/pgsql/bin;
export PGDATA=/usr/local/pgsql/data;
Answer the question
In order to leave comments, you need to log in
if using the bash shell , then:
for the user:
$ echo 'export PATH="$PATH:/usr/local/pgsql/bin"' >> ~/.bashrc
$ echo 'export PGDATA=/usr/local/pgsql/data' >> ~/.bashrc
# echo 'export PATH="$PATH:/usr/local/pgsql/bin"' >>/etc/profile
# echo 'export PGDATA=/usr/local/pgsql/data' >> /etc/profile
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question