Difference between /usr/lib/ and /usr/local/ in installation of PostgreSQL? -
i reading thread , manual of postgresql 9.4. run
ps auxw | grep postgres | grep -- -d
but get
postgres 17340 0.0 0.5 226700 21756 ? s 09:50 0:00 /usr/lib/postgresql/9.4/bin/postgres -d /var/lib/postgresql/9.4/main -c config_file=/etc/postgresql/9.4/main/postgresql.conf
but default installation location should /usr/local/pgsql/
according manual @ file:///usr/share/doc/postgresql-doc-9.4/html/install-short.html.
it may possible database initdb
in /usr/lib/
directory.
how can change installation location of postgresql?
the thread you're reading says installation directory /usr/local/pgsql
when install source, suppose well. change directory make install
uses installation, need specify --prefix
argument configure
:
./configure --prefix=/path/to/install make sudo make install
ps: in case don't install source, refer documentation comes package manager.
Comments
Post a Comment