User:Vincent 95/installation osm142

From OpenStreetMap Wiki
Jump to: navigation, search
    • sudo apt-get install postgresql-9.6
    • sudo apt-get install postgresql-9.6-postgis-2.3
    • sudo su
    • mkdir /data/pgdata
    • chown postgres:postgres /data/pgdata/
    • sudo -u postgres -s
    • /usr/lib/postgresql/9.6/bin/initdb /data/pgdata
  • /usr/lib/postgresql/9.6/bin/pg_ctl -D /data/pgdata -l logfile start