How to make Postgres start automatically on boot

cwmacken

I am new to Ubuntu and I would like to know how to make postgresql start automatically on boot and how to configure my setup so that I can start the postgres server if need be.

I am working on a small rails project and I have been having difficulties with postgres starting correctly. I have had to resort to uninstalling and reinstalling postgres to just get the project up and running just to get work done. I have been using these commands.

sudo apt-get -y update
sudo apt-get purge postgresql* # ending * is important
sudo apt-get install postgresql libpq-dev

from this post

https://stackoverflow.com/questions/17934055/postgresql-cannot-connect-to-server-locally

skipping

sudo add-apt-repository ppa:pitti/postgresql

as it appears it is out of date and there's a comment below about not needing it.

If it helps my pg_hba.conf file appears to be located at

/etc/postgresql/9.1/main

I am running Ubuntu 12.04 on top of chrome os

Thanks all for the help and sorry for the newb question!

kalibbala

If you want to start postgres on startup so that you wont have to restart is all the time simply do:

sudo update-rc.d postgresql enable

this will always start your postgres on boot startup. hope it helps someone

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

How to conditionally make a spring boot application terminate at start-up

From Java

How do I make a Docker container start automatically on system boot?

From Dev

How to make IDLE automatically import modules at start?

From Dev

Celery: Start Worker Automatically (on boot)

From Dev

How to start a container automatically in boot2docker on boot?

From Dev

How to make a systemctl unit (or service) start with system (on boot)

From Dev

How to automatically start Teapot on an Image start?

From Dev

How to make java web start launch automatically without double click on the JNLP

From Dev

How to start custom applications as root automatically on boot?

From Dev

How to make automatically boot in every computer?

From Dev

TeamViewer does not start automatically, how do I make sure it does?

From Dev

How to conditionally make a spring boot application terminate at start-up

From Dev

How do I start gerrit automatically in OS X on boot?

From Dev

How to make Postgres start automatically on boot

From Dev

How to start custom applications as root automatically on boot?

From Dev

TeamViewer does not start automatically, how do I make sure it does?

From Dev

Lightdm won't start automatically on boot

From Dev

How to boot Ubuntu automatically?

From Dev

Automatically start perfmon on boot

From Dev

How to start MQ queue manager automatically on Windows boot?

From Dev

How to start sshd automatically

From Dev

mysql service can not start automatically at boot up

From Dev

How to make linux start with the spring boot after login?

From Dev

How do I make Crashplan start automatically?

From Dev

How to automatically mount at boot?

From Dev

Start SSH automatically on boot

From Dev

How do I make to start docker automatically after reboots?

From Dev

Start app automatically on system boot in RN

From Dev

How to start Kamailio on boot

Related Related

  1. 1

    How to conditionally make a spring boot application terminate at start-up

  2. 2

    How do I make a Docker container start automatically on system boot?

  3. 3

    How to make IDLE automatically import modules at start?

  4. 4

    Celery: Start Worker Automatically (on boot)

  5. 5

    How to start a container automatically in boot2docker on boot?

  6. 6

    How to make a systemctl unit (or service) start with system (on boot)

  7. 7

    How to automatically start Teapot on an Image start?

  8. 8

    How to make java web start launch automatically without double click on the JNLP

  9. 9

    How to start custom applications as root automatically on boot?

  10. 10

    How to make automatically boot in every computer?

  11. 11

    TeamViewer does not start automatically, how do I make sure it does?

  12. 12

    How to conditionally make a spring boot application terminate at start-up

  13. 13

    How do I start gerrit automatically in OS X on boot?

  14. 14

    How to make Postgres start automatically on boot

  15. 15

    How to start custom applications as root automatically on boot?

  16. 16

    TeamViewer does not start automatically, how do I make sure it does?

  17. 17

    Lightdm won't start automatically on boot

  18. 18

    How to boot Ubuntu automatically?

  19. 19

    Automatically start perfmon on boot

  20. 20

    How to start MQ queue manager automatically on Windows boot?

  21. 21

    How to start sshd automatically

  22. 22

    mysql service can not start automatically at boot up

  23. 23

    How to make linux start with the spring boot after login?

  24. 24

    How do I make Crashplan start automatically?

  25. 25

    How to automatically mount at boot?

  26. 26

    Start SSH automatically on boot

  27. 27

    How do I make to start docker automatically after reboots?

  28. 28

    Start app automatically on system boot in RN

  29. 29

    How to start Kamailio on boot

HotTag

Archive