title: Starting a postgres SQL 9.6 Server on Amazon Linux returns unrecognized service
body: <p>I am attempting to start a Postgres SQL server on amazon Linux using the command</p>
  
  <pre><code>sudo service postgresql start
  </code></pre>
  
  <p>I installed the server using <a href="https://serverfault.com/questions/831962/installing-postgres-server-9-6-on-amazon-linux/916075">this</a> method. I have added it here for simplicity</p>
  
  <pre><code>sudo rpm -i https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-6-x86_64/pgdg-ami201503-96-9.6-2.noarch.rpm
  </code></pre>
  
  <p>and then</p>
  
  <pre><code>sudo yum install postgresql96-server.x86_64
  </code></pre>
  
  <p>after which i did this to install the command line tools for postgres </p>
  
  <pre><code>sudo yum install postgresql96.x86_64 postgresql96-libs.x86_64
  </code></pre>
  
  <p>Any suggestions on how I can start the server ? I usually start the server using 
  the command </p>
  
  <pre><code>sudo service postgresql start
  </code></pre>
  
  <p>however its not working in this case as it says "Unrecognized service"
  I then tried this</p>
  
  <pre><code>postgres -D /usr/local/pgsql/data
  postgres: could not access directory "/usr/local/pgsql/data": No such file or directory. Run initdb or pg_basebackup to initialize a PostgreSQL data directory.
  </code></pre>