Full Text Search (Owncloud): Unterschied zwischen den Versionen

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


Zeile 10: Zeile 13:


== Elasticsearch ==
== Elasticsearch ==
Siehe auch [[Elasticsearch (Linux)]]


=== Version 5.6 ===
=== Version 5.6 ===
Zeile 15: Zeile 20:
==== Installation unter Raspbian ====
==== Installation unter Raspbian ====


Öffentlichen signierten Schlüssel herunterladen und 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]
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
</pre>
 
Paket <code>apt-transport-https</code> installieren:
 
<pre>
sudo apt-get update && sudo apt-get install apt-transport-https
</pre>
 
<pre>
echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-5.x.list
</pre>
 
<pre>
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 ====
==== Links ====
Zeile 90: Zeile 28:
[https://doc.owncloud.com/server/admin_manual/configuration/search/ https://doc.owncloud.com/server/admin_manual/configuration/search/]
[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/5.6/deb.html https://www.elastic.co/guide/en/elasticsearch/reference/5.6/deb.html]
[https://www.elastic.co/guide/en/elasticsearch/reference/index.html https://www.elastic.co/guide/en/elasticsearch/reference/index.html]


[https://www.elastic.co/guide/en/elasticsearch/reference/index.html https://www.elastic.co/guide/en/elasticsearch/reference/index.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.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, 10:24 Uhr