Changes between Version 21 and Version 22 of GIS/InstallationGuidelines/Linux
- Timestamp:
- 09/19/10 16:44:30 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GIS/InstallationGuidelines/Linux
v21 v22 7 7 8 8 == PostGIS == 9 * [http://postgis.refractions.net PostGIS] adds Spatial storage to [wiki:InstallationGuidelinesPostgreSQL PostgreSQL] 10 (alternatively these can be installed as part of [http://opengeo.org/community/suite/download/ OpenGeoSuite]) 11 {{{ 12 apt-get install postgresql-8.3-postgis 9 [http://postgis.refractions.net PostGIS] adds Spatial storage to [wiki:InstallationGuidelinesPostgreSQL PostgreSQL] 10 * alternatively these can be installed as part of [http://opengeo.org/community/suite/download/ OpenGeoSuite] 11 NB PostGIS in Debian Lenny is rather old - recommend using the version in Squeeze 12 {{{ 13 apt-get install postgresql-8.4-postgis 13 14 su postgres 14 15 createdb gis 15 16 createlang plpgsql gis 16 psql -d gis -f /usr/share/postgresql-8. 3-postgis/lwpostgis.sql17 psql -d gis -f /usr/share/postgresql-8. 3-postgis/spatial_ref_sys.sql17 psql -d gis -f /usr/share/postgresql-8.4-postgis/lwpostgis.sql 18 psql -d gis -f /usr/share/postgresql-8.4-postgis/spatial_ref_sys.sql 18 19 }}} 19 20 * Add Spherical Mercator projection (900913. See http://www.cadmaps.com/gisblog/?p=81 for 54004): … … 26 27 passwd postgres 27 28 28 vim /etc/postgresql/8. 3/main/postgresql.conf29 vim /etc/postgresql/8.4/main/postgresql.conf 29 30 listen_addresses = '*' 30 31 31 vim /etc/postgresql/8. 3/main/pg_hba.conf32 vim /etc/postgresql/8.4/main/pg_hba.conf 32 33 host all all my.ip.add.ress/24 md5 33 34 34 /etc/init.d/postgresql-8. 3restart35 /etc/init.d/postgresql-8.4 restart 35 36 36 37 vim /etc/iptables.rules … … 57 58 sysctl -w kernel.shmall=2097152 58 59 59 vim /etc/postgresql/8. 3/main/postgresql.conf60 vim /etc/postgresql/8.4/main/postgresql.conf 60 61 61 62 # This default is probably ok … … 92 93 maintenance_work_mem = 16MB 93 94 94 /etc/init.d/postgresql-8. 3restart95 /etc/init.d/postgresql-8.4 restart 95 96 }}} 96 97