Confluence/Installing/Database
From r00tedvw.com wiki
(Difference between revisions)
Line 6: | Line 6: | ||
=Package Installations= | =Package Installations= | ||
reference here: [https://www.postgresql.org/download/linux/redhat/ https://www.postgresql.org/download/linux/redhat/]<br /> | reference here: [https://www.postgresql.org/download/linux/redhat/ https://www.postgresql.org/download/linux/redhat/]<br /> | ||
− | I installed the following initial packages | + | I installed the following initial packages, going with Postgres 9.6 b/c that was the highest supported version for Confluence. |
<nowiki>~$ sudo yum update && sudo yum upgrade -y | <nowiki>~$ sudo yum update && sudo yum upgrade -y | ||
~$ sudo yum install -y vim https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-centos96-9.6-3.noarch.rpm | ~$ sudo yum install -y vim https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-centos96-9.6-3.noarch.rpm | ||
Line 14: | Line 14: | ||
~$ sudo systemctl enable postgresql-9.6 | ~$ sudo systemctl enable postgresql-9.6 | ||
~$ sudo systemctl start postgresql-9.6</nowiki> | ~$ sudo systemctl start postgresql-9.6</nowiki> | ||
+ | Verify installation | ||
+ | <nowiki>~$ sudo -u postgres /usr/pgsql-9.6/bin/psql -c "SELECT version();"</nowiki> |
Revision as of 14:21, 24 September 2018
Installing | Database Server Installation
Operating System
I chose CentOS 7 x64 with 1 CPU, 1GB RAM, 20GB HDD, which PostgreSQL should run fine on.
Package Installations
reference here: https://www.postgresql.org/download/linux/redhat/
I installed the following initial packages, going with Postgres 9.6 b/c that was the highest supported version for Confluence.
~$ sudo yum update && sudo yum upgrade -y ~$ sudo yum install -y vim https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-centos96-9.6-3.noarch.rpm ~$ sudo yum install -y postgresql96 postgresql96-server
Initialize DB and enable autostart
~$ sudo /usr/pgsql-9.6/bin/postgresql96-setup initdb ~$ sudo systemctl enable postgresql-9.6 ~$ sudo systemctl start postgresql-9.6
Verify installation
~$ sudo -u postgres /usr/pgsql-9.6/bin/psql -c "SELECT version();"