Debian 10 GIS Server: Unterschied zwischen den Versionen
Aus Geoportal
Armin (Diskussion | Beiträge) |
Armin (Diskussion | Beiträge) |
||
Zeile 31: | Zeile 31: | ||
The port of the first cluster will be 5433, it will increment with the number of clusters. |
The port of the first cluster will be 5433, it will increment with the number of clusters. |
||
== Edit conf files == |
== Edit conf files == |
||
− | /etc/postgresql/11/{clustername}/postgresql.conf |
+ | <pre>vi /etc/postgresql/11/{clustername}/postgresql.conf</pre> |
* Uncomment listen_addresses ... |
* Uncomment listen_addresses ... |
||
* exchange localhost with * |
* exchange localhost with * |
||
− | + | == Restart cluster == |
|
+ | <pre>pg_ctlcluster 11 {clustername} restart</pre> |
Version vom 24. Juli 2020, 07:30 Uhr
Installation
Howto turn a Debian 10 box (netinstall) into a OWS Server - with apache2 & PostgreSQL
Update System
apt-get update apt-get -y upgrade apt-get clean
Install Admin Tools
apt-get -y install curl dos2unix htop mlocate p7zip unzip vim mc apt-get clean
Install further helpful things
apt-get -y install apache2 libapache2-mod-php cgi-mapserver postgresql-11-postgis-2.5 gdal-bin postgresql-11-ogr-fdw php-xml libproj13 apt-get clean
Adopt epsg file to support beta2007 transformation
cd /usr/share/proj cp epsg epsg_old
Create postgres cluster and start it
pg_createcluster 11 {clustername} pg_ctlcluster 11 {clustername} start
Path for conf files: /etc/postgresql/11/{clustername}
The port of the first cluster will be 5433, it will increment with the number of clusters.
Edit conf files
vi /etc/postgresql/11/{clustername}/postgresql.conf
- Uncomment listen_addresses ...
- exchange localhost with *
Restart cluster
pg_ctlcluster 11 {clustername} restart