![]() This will install the latest version available in your Ubuntu release and the commonly used add-ons for it. To install use the command line and type: sudo apt-get install postgresql postgresql-contrib for version 9.4: chkconfig postgresql-9.4 on Install PostgreSQL on Ubuntu If you want PostgreSQL to start automatically when the OS starts: chkconfig onĮ.g. RHEL 7.1+ and CentOS 7.1+ are a bit different. for version 9.4: /usr/pgsql-9.4/bin/postgresql94-setup initdb If the previous command did not work, try directly calling the setup binary, located in a similar naming scheme: /usr/pgsql-y.x/bin/postgresqlyx-setup initdbĮ.g. for version 9.4: service postgresql-9.4 initdb The first command (only needed once) is to initialize the database in PGDATA. ![]() The variable PGDATA is used to reference this directory.įor PostgreSQL version 9.0 and above, the default data directory is: /var/lib/pgsql//data The PostgreSQL data directory contains all of the data files for the database. ![]() Edit: /etc//CentOS-Base.repo, and sections exclude=postgresql* ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |