You are here: Beat » SolR9

Solr 9 installieren

08 March 2025 - 21:53 | Version 1 |

Worum geht es?

Solr als Suchmaschine installieren für den Wiki-Server

Schritte

Was liegt wo?

  • Software: /opt/solr
  • Daten: /var/solr
  • Config: /etc/default/solr.in.sh

Config-Anpassungen in /etc/default/solr.in.sh

GC_LOG_OPTS="-Xlog:gc*,safepoint,age*,ergo*:file=/var/solr/logs/solr_gc-%p-%t.log:tags,uptime,time,level:filecount=1
0,filesize=50m"

GC_TUNE="-XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:+UseLargePages -XX:G1HeapRegionSize=2m -XX:MaxGCPauseMillis=20
0 -XX:InitiatingHeapOccupancyPercent=70 -XX:+UseStringDeduplication -XX:+DisableExplicitGC -XX:+IgnoreUnrecognizedVM
Options"

SOLR_OPTS="$SOLR_OPTS -Djetty.host=localhost"

loglevel anpassen in /var/solr/log4j.properties

log4j.rootLogger=WARN, file, CONSOLE

Configset kopieren statt ln -s machen

ln -s /solr/configsets/foswiki_configs

monit-\xDCberwachung f\xFCr solr

root@arbeitsgruppe /etc/monit/conf-enabled# more solr
check process solr with pidfile /var/solr/solr-8983.pid
  start program = "/bin/system solr start"
  stop program  = "/bin/system solr stop"
  if failed port 8983 protocol http
    with timeout 15 seconds
    then restart
  if 5 restarts within 5 cycles then timeout

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding wiki.doebe.li? Send feedback
This page was cached on 26 May 2025 - 07:36.