mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 10:51:36 -04:00
Disabling JIT for map database as recommended by mod_tile because of excess memory usgae.
This commit is contained in:
parent
f9ed86e31a
commit
af5d4dfd51
5 changed files with 10 additions and 2 deletions
|
|
@ -116,6 +116,8 @@ grep -q 'port: 5433' /opt/openstreetmap-carto/project.mml || (
|
|||
(cd /opt/openstreetmap-carto/ && carto project.mml >mapnik.xml)
|
||||
)
|
||||
chown -R _renderd:_renderd /opt/openstreetmap-carto
|
||||
# Disable JIT as recommended by mod_tile
|
||||
sed -i 's/#jit =.*/jit = off/' /etc/postgresql/15/map/postgresql.conf
|
||||
|
||||
cp /opt/wrolpi/etc/raspberrypios/renderd.conf /etc/renderd.conf
|
||||
# Configure Apache2 to listen on 8084.
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ file permissions if necessary:
|
|||
Start the WROLPi services using:
|
||||
# sudo systemctl start wrolpi.target
|
||||
|
||||
then navigate to: http://wrolpi.local
|
||||
then navigate to: https://$(hostnmae).local
|
||||
|
||||
Or, join to the Wifi hotspot:
|
||||
SSID: WROLPi
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ file permissions if necessary:
|
|||
Start the WROLPi services using:
|
||||
# sudo systemctl start wrolpi.target
|
||||
|
||||
then navigate to: http://wrolpi.local
|
||||
then navigate to: https://$(hostname).local
|
||||
|
||||
Or, join to the Wifi hotspot:
|
||||
SSID: WROLPi
|
||||
|
|
|
|||
|
|
@ -27,6 +27,10 @@ set -x
|
|||
|
||||
systemctl stop renderd
|
||||
|
||||
# Delete old map database, if it exists.
|
||||
sudo -iu postgres dropdb --port=5433 gis || :
|
||||
sudo -iu postgres dropuser --port=5433 _renderd || :
|
||||
# Delete new map database, it will be created again.
|
||||
sudo -iu postgres dropdb --port=5433 gis || :
|
||||
sudo -iu postgres dropuser --port=5433 _renderd || :
|
||||
|
||||
|
|
|
|||
|
|
@ -27,6 +27,8 @@ systemctl stop renderd
|
|||
|
||||
# Create new cluster for the map.
|
||||
pg_createcluster 15 map --port=5433 --start
|
||||
# Disable JIT as recommended by mod_tile
|
||||
sed -i 's/#jit =.*/jit = off/' /etc/postgresql/15/map/postgresql.conf
|
||||
|
||||
# Create user permissions for map user.
|
||||
sudo -iu postgres psql -c '\l' --port=5433 | grep gis || (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue