Difference between revisions of "Setup:Installation Manual/Services and system configuration/ElasticSearch"

[quality revision][quality revision]
m (Text replacement - "[[Setup:Installation Manual" to "[[Setup:Installation Guide")
 

Linux[edit | edit source]

There is an official repo from the manufacturer: Documentation on manufacturer's website

Summary:

                    $ wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add -
$ apt-get install apt-transport-https
$ echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" > /etc/apt/sources.list.d/elastic-6.x.list
$ apt-get update && apt-get install elasticsearch
$ /usr/share/elasticsearch/bin/elasticsearch-plugin install ingest-attachment
$ systemctl enable elasticsearch

                

Then please execute "service elasticsearch start". It takes about 10 seconds to start, then the service should appear on port 9200 under "netstat -tulpn".

Activating the ElasticSearch in BlueSpice[edit | edit source]

Go to the directory <installpath-bluespice>/settings.d. Open the file 020-BlueSpiceExtendedSearch.php in a text editor.

In the second line is a code to activate the extension:

return; // Disabled. Needs Tomcat

You can either add a comment character (#) to the beginning of this line or delete the line completely, save the file and exit it.

Open a command line and change to the <installpath-bluespice> folder. Execute the following command:

                php maintenance/update.php (Linux)
php maintenance\update.php (Windows))

            


Hint.jpg
In Windows, make sure that the environment variables are set correctly to access the php command.



Hint.jpg
Note that you must update the file system permissions after running update.php.


When the script is finished with the "Done" message, the web service is successfully installed.

{{DISPLAYTITLE:ElasticSearch}}
        
        __TOC__
        
        ==Linux==
        
        There is an official repo from the manufacturer: Documentation [https://www.elastic.co/guide/en/elasticsearch/reference/6.0/deb.html on manufacturer's website] 
        
        
        
        Summary:
        
        
        
        
        <source lang="bash">
        
        $ wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add -
        
        $ apt-get install apt-transport-https
        
        $ echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" > /etc/apt/sources.list.d/elastic-6.x.list
        
        $ apt-get update && apt-get install elasticsearch
        
        $ /usr/share/elasticsearch/bin/elasticsearch-plugin install ingest-attachment
        
        $ systemctl enable elasticsearch
        
        
        </source>
        
        
        
        Then please execute "service elasticsearch start". It takes about 10 seconds to start, then the service should appear on port 9200 under "netstat -tulpn".
        
        
        
        ==Activating the ElasticSearch in BlueSpice==
        
        Go to the directory <code>&lt;installpath-bluespice&gt;/settings.d</code>. Open the file '''020-BlueSpiceExtendedSearch.php''' in a text editor.
        
        
        
        In the second line is a code to activate the extension:
        
        
        
         return; // Disabled. Needs Tomcat
        
        
        
        You can either add a comment character (#) to the beginning of this line or delete the line completely, save the file and exit it.
        
        
        
        Open a command line and change to the <code>&lt;installpath-bluespice></code> folder. Execute the following command:
        
        
        
         php maintenance/update.php ''(Linux)''
        
         php maintenance\update.php ''(Windows))''
        
        {{Hint
        
        |text=In Windows, make sure that the environment variables are set correctly to access the php command.}}
        
        
        
        {{Hint
        
        |text=Note that you must update the [[Setup:Installation ManualGuide/Security Settings/File System Permissions#Assignment_of_Permissions_with_Linux|file system permissions]] after running update.php.}}
        
        
        
        When the script is finished with the "Done" message, the web service is successfully installed.<br /><br />
        
        
        
        [[en:{{FULLPAGENAME}}]]
        
        [[de:Setup:Installationsanleitung/Dienste/ElasticSearch]]
Line 34: Line 34:
  
 
{{Hint
 
{{Hint
|text=Note that you must update the [[Setup:Installation Manual/Security Settings/File System Permissions#Assignment_of_Permissions_with_Linux|file system permissions]] after running update.php.}}
+
|text=Note that you must update the [[Setup:Installation Guide/Security Settings/File System Permissions#Assignment_of_Permissions_with_Linux|file system permissions]] after running update.php.}}
  
 
When the script is finished with the "Done" message, the web service is successfully installed.<br /><br />
 
When the script is finished with the "Done" message, the web service is successfully installed.<br /><br />

Attachments

Discussions