Differenze
Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.
guide:postgis_su_centos6 [2013/08/01 23:54] alelorenzi |
guide:postgis_su_centos6 [2013/08/05 09:34] (versione attuale) pjhooker |
||
---|---|---|---|
Linea 1: | Linea 1: | ||
- | ====== PostGIS su CentOS 6 ====== | + | ====== CentOS 6 su superserver (192.81.215.55) ====== |
- | ===== Installazione ===== | ||
- | # yum install -y http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | + | Da Giugno 2013 è attivo il superserver. Si tratta di una virtualizzazione con il servizio di Digital Ocean e costa 5$ al mese (a ore di attività) |
- | # yum install -y postgis | + | |
- | + | ||
- | [[guide:postgis_su_centos6:postgis.sql]] | + | Le caratteristiche hardware sono: |
+ | |||
+ | |||
+ | * ram: 512MB | ||
+ | * hard disk: 20GB SSD | ||
+ | * location: New York 1 | ||
+ | * sistema operativo: CentOS 6.4 x64 | ||
+ | |||
+ | |||
+ | Il principale uso sarà quello di gestire dati geografici e sviluppare applicazioni; è possibile sfruttare questo servizio per fare dei test con atre applicazioni e sfruttare i database installati. | ||
+ | |||
+ | |||
+ | I pacchetti installati sono: | ||
+ | |||
+ | |||
+ | * Postgres 8.4 | ||
+ | * PostGis 1.5 | ||
+ | * Apache | ||
+ | * MySql | ||
+ | * Imagemagik | ||
+ | * PHP5 | ||
+ | |||
+ | |||
+ | Per accedere a questo sistema sono stati installati: | ||
+ | |||
+ | |||
+ | * [[http://192.81.215.55/joomla/|Joomla]] | ||
+ | * [[http://192.81.215.55:10000/|Webmin]] | ||
+ | |||
+ | |||
+ | ===== PostGIS su CentOS 6 ===== | ||
+ | |||
+ | |||
+ | ==== Installazione ==== | ||
+ | |||
+ | |||
+ | <code> | ||
+ | # yum install -y http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | ||
+ | # yum install -y postgis | ||
+ | </code> | ||
+ | |||
+ | |||
+ | [[:guide:postgis_su_centos6:postgis.sql|postgis.sql]] | ||
+ | |||
+ | |||
+ | ==== Usare pgAdmin III ==== | ||
- | ===== Usare pgAdmin III ===== | ||
edit /var/lib/pgsql/data/pg_hba.conf | edit /var/lib/pgsql/data/pg_hba.conf | ||
- | # TYPE DATABASE USER CIDR-ADDRESS METHOD | + | |
- | + | <code> | |
- | # "local" is for Unix domain socket connections only | + | # TYPE DATABASE USER CIDR-ADDRESS METHOD |
- | local all all trust | + | |
- | # IPv4 local connections: | + | # "local" is for Unix domain socket connections only |
- | host all all 127.0.0.1/32 md5 | + | local all all trust |
- | # IPv6 local connections: | + | # IPv4 local connections: |
- | host all all ::1/128 md5 | + | host all all 127.0.0.1/32 md5 |
+ | # IPv6 local connections: | ||
+ | host all all ::1/128 md5 | ||
+ | </code> | ||
restart postgresql | restart postgresql | ||
- | # service postgresql restart | + | |
+ | |||
+ | <code> | ||
+ | # service postgresql restart | ||
+ | </code> | ||
Forward porta postgresql | Forward porta postgresql | ||
- | # ssh -L 5432:localhost:5432 cityplanner.it | + | |
- | ## oppure... | + | <code> |
- | # ssh -X cityplanner.it | + | # ssh -L 5432:localhost:5432 cityplanner.it |
+ | ## oppure... | ||
+ | # ssh -X cityplanner.it | ||
+ | </code> | ||
Configurazione della connessione | Configurazione della connessione | ||
- | {{guide:postgis_su_centos6:2013-08-01-235204_614x556_scrot.png}} | + | |
+ | {{:guide:postgis_su_centos6:2013-08-01-235204_614x556_scrot.png}} | ||