Full Text Search (Owncloud): Unterschied zwischen den Versionen

Aus Tutorials
Zur Navigation springen Zur Suche springen
 
(9 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
{{note|Noch in Bearbeitung}}
== App ==
== App ==


Zeile 11: Zeile 14:
== Elasticsearch ==
== Elasticsearch ==


=== Installation unter Raspbian ===
Siehe auch [[Elasticsearch (Linux)]]


Öffentlichen signierten Schlüssel herunterladen und installieren:
=== Version 5.6 ===


<pre>
==== Installation unter Raspbian ====
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
</pre>


Paket <code>apt-transport-https</code> installieren:
{{note|Da Owncloud aktuell (23.05.2021) die Version 5.6 benötigt und diese für ARM nicht existiert momentan deaktiviert}}


<pre>
[https://www.elastic.co/guide/en/elasticsearch/reference/5.6/deb.html https://www.elastic.co/guide/en/elasticsearch/reference/5.6/deb.html]
sudo apt-get update && sudo apt-get install apt-transport-https
</pre>


==== Links ====


[https://doc.owncloud.com/server/admin_manual/configuration/search/ https://doc.owncloud.com/server/admin_manual/configuration/search/]


<pre>
[https://www.elastic.co/guide/en/elasticsearch/reference/index.html https://www.elastic.co/guide/en/elasticsearch/reference/index.html]
Some of the following directions can be found online through the following link. https://www.elastic.co/guide/en/elastic ... t/deb.html
I believe that these steps will work for 7.0.0 through 7.3.2 but I have not tested each version. ***Note: I will add the 7.4 and higher installation instructions in this thread at a later time.
• wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - ***Note: This should respond with OK
• sudo apt-get install apt-transport-https
• echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list
• cd ~
• wget https://artifacts.elastic.co/downloads/ ... -amd64.deb
• sudo dpkg -i --force-all --ignore-depends=lib6 elasticsearch-7.3.2-no-jdk-amd64.deb ***Note: You may see some download errors here
• Change the permissions for the /etc/elasticsearch folder for easier access
• sudo chmod g+w /etc/elasticsearch
• sudo chmod 755 -R /etc/elasticsearch
• sudo chown -R elasticsearch:elasticsearch /etc/elasticsearch
Edit the elasticsearch yaml file
• sudo nano /etc/elasticsearch/elasticsearch.yml ***Note:This is where you edit the node settings for Elasticsearch.
 
    Clustername: elasticpi
 
    Node.name: <name your node, i.e. bay1>
 
    Path.data: /var/lib/elasticsearch
 
    Path.logs: /var/log/elasticsearch
 
    Network.host: <computers ip address>
 
    Http.port: 9200
 
    discovery.seed_hosts: ["169.254.xx.xx","169.254.xx.xx","169.254.xx.xx"] ***Note: If you are creating a cluster you need to add all of the node IP addresses here.
 
    xpack.ml.enabled: false // add to yaml at the bottom
 
    node.master: true // add to yaml at the bottom
 
    node.data: true // add to yaml at the bottom
 
    node.ingest: true // add to yaml at the bottom
 
    discovery.type: single-node // ***Note: Comment this out if you are building a cluster. This line is temporary and used if you just have one RPi.
 
    bootstrap.system_call_filter: false ***Note: This is needed to bypass some of the checks that Elasticsearch does.
 
§ Ctrl + o, enter, ctrl + x
• sudo nano /etc/default/elasticsearch
 
    Edit the JAVA_HOME section to have JAVA_HOME=/usr/lib/jvm/java-11-openjdk-armhf
 
    Ctrl 0, enter, Ctrl + X
    • sudo nano /etc/elasticsearch/jvm.options
        Change the -Xms1g and -Xmx1g to half of the memory that your system has. For a 4B its should be changed to -Xms2g and -Xmx2g
        Ctrl + 0, enter, Ctrl + X
    • sudo systemctl start elasticsearch
    • sudo systemctl status elasticsearch
</pre>
 
=== Links ===
 
[https://doc.owncloud.com/server/admin_manual/configuration/search/ https://doc.owncloud.com/server/admin_manual/configuration/search/]


[https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html]
[https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html]


[https://www.elastic.co/guide/en/elasticsearch/reference/index.html https://www.elastic.co/guide/en/elasticsearch/reference/index.html]
[https://www.raspberrypi.org/forums/viewtopic.php?t=268432 https://www.raspberrypi.org/forums/viewtopic.php?t=268432]


[https://www.raspberrypi.org/forums/viewtopic.php?t=268432 https://www.raspberrypi.org/forums/viewtopic.php?t=268432]


Zurück zu [[Owncloud Apps#Full Text Search|Owncloud Apps]]
Zurück zu [[Owncloud Apps#Full Text Search|Owncloud Apps]]

Aktuelle Version vom 23. Mai 2021, 09:24 Uhr