GithubHelp home page GithubHelp logo

autoinstall-postgresql's Introduction

autoinstall-postgresql

This is an automatic script to install PostgreSQL 12 and PgAdmin 4 for Linux Ubuntu.

This script is already tested and working in Linux Ubuntu 18.04 LTS.

Installation

  1. Download or clone this repo
    git clone https://github.com/dnwandana/autoinstall-postgresql.git
    cd autoinstall-postgresql
  2. Make the file install.sh is executable
    sudo chmod +x install.sh
  3. Execute install.sh, this will take a minutes to finish
    ./install.sh

Installation Note

  • You'll be prompted twice, when creating a PostgreSQL user and when creating account for the initial pgAdmin user account.
  • When creating PostgreSQL user, a prompt will be shown to you, asking you to input your desired username, password, and if you want the user to be a superuser.
    Enter name of role to add: dana
    Enter password for new role:
    Enter it again:
    Shall the new role be a superuser? (y/n) y
  • When creating PgAdmin user, a prompt will be shown to you, asking you to input your desired email address, password, and some confirmation about new Apache Web Server configuration.
    Setting up pgAdmin 4 in web mode on a Debian platform...
    Creating configuration database...
    NOTE: Configuring authentication for SERVER mode.
    
    Enter the email address and password to use for the initial pgAdmin user account:
    
    Email address: [email protected]
    Password: 
    Retype password: 
    pgAdmin 4 - Application Initialisation
    ======================================
    
    Creating storage and log directories...
    We can now configure the Apache Web server for you. This involves enabling the wsgi module and configuring the pgAdmin 4 application to mount at /pgadmin4. Do you wish to continue (y/n)? y
    The Apache web server is running and must be restarted for the pgAdmin 4 installation to complete. Continue (y/n)? y
    Apache successfully restarted. You can now start using pgAdmin 4 in web mode at http://127.0.0.1/pgadmin4/
  • When the installaton complete, you'll see information like this in your terminal.
     DONE  Installation Complete!
    
      Service running at:
      - PostgreSQL: 127.0.0.1:5432
      - PgAdmin4:   http://127.0.0.1/pgadmin4/

Reference

autoinstall-postgresql's People

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.