2411: Add copyright notices to everything.
[arvados.git] / doc / install / install-postgresql.html.textile.liquid
index f27e62990e19bfe9d8668fc40d0c0052005d2c10..08d51e4251d81abb3225429593a213ec461059d9 100644 (file)
@@ -3,6 +3,11 @@ layout: default
 navsection: installguide
 title: Set up PostgreSQL databases
 ...
+{% comment %}
+Copyright (C) The Arvados Authors. All rights reserved.
+
+SPDX-License-Identifier: CC-BY-SA-3.0
+{% endcomment %}
 
 Two Arvados Rails servers store data in a PostgreSQL database: the SSO server, and the API server.  The API server requires at least version 9.1 of PostgreSQL.  Beyond that, you have the flexibility to deploy PostgreSQL any way that the Rails servers will be able to connect to it.  Our recommended deployment strategy is:
 
@@ -11,20 +16,18 @@ Two Arvados Rails servers store data in a PostgreSQL database: the SSO server, a
 
 Find the section for your distribution below, and follow it to install PostgreSQL on each host where you will deploy it.  Then follow the steps in the later section(s) to set up PostgreSQL for the Arvados service(s) that need it.
 
-h2(#centos6). Install PostgreSQL on CentOS 6
+h2(#centos7). Install PostgreSQL on CentOS 7
 
-# Install Software Collections:
-  <notextile><pre>~$ <span class="userinput">sudo yum install centos-release-scl scl-utils</span></pre></notextile>
 # Install PostgreSQL:
-  <notextile><pre>~$ <span class="userinput">sudo yum install rh-postgresql94-postgresql-server</span></pre></notextile>
+  <notextile><pre>~$ <span class="userinput">sudo yum install postgresql-server</span></pre></notextile>
 # Initialize the database:
-  <notextile><pre>~$ <span class="userinput">sudo scl enable rh-postgresql94 "postgresql-setup initdb"</span></pre></notextile>
+  <notextile><pre>~$ <span class="userinput">sudo postgresql-setup initdb</span></pre></notextile>
 # Configure the database to accept password connections:
-  <notextile><pre><code>~$ <span class="userinput">sudo sed -ri -e 's/^(host +all +all +(127\.0\.0\.1\/32|::1\/128) +)ident$/\1md5/' /var/opt/rh/rh-postgresql94/lib/pgsql/data/pg_hba.conf</span></code></pre></notextile>
+  <notextile><pre><code>~$ <span class="userinput">sudo sed -ri -e 's/^(host +all +all +(127\.0\.0\.1\/32|::1\/128) +)ident$/\1md5/' /var/lib/pgsql/data/pg_hba.conf</span></code></pre></notextile>
 # Configure the database to launch at boot:
-  <notextile><pre>~$ <span class="userinput">sudo chkconfig rh-postgresql94-postgresql on</span></pre></notextile>
+  <notextile><pre>~$ <span class="userinput">sudo systemctl enable postgresql</span></pre></notextile>
 # Start the database:
-  <notextile><pre>~$ <span class="userinput">sudo service rh-postgresql94-postgresql start</span></pre></notextile>
+  <notextile><pre>~$ <span class="userinput">sudo systemctl start postgresql</span></pre></notextile>
 # "Set up Arvados credentials and databases":#rails_setup for the services that will use this PostgreSQL install.
 
 h2(#debian). Install PostgreSQL on Debian or Ubuntu