How do I install SearchBlox on RedHat or CentOS?

Installation SearchBlox in Centos and RHEL

Prerequisites:
  • Install OpenJDK 11 on Linux prior to installing SearchBlox, and ensure it uses the default Java runtime. You can install OpenJDK 11 by running the following command:
    sudo yum install java-11-openjdk-devel
  • If wget is not installed please install the same using the command below
    yum install wget
  • Verify the installation by giving the command
    java -version
 Steps for Installation
  • Please login as root using sudo su if you are not the root user.
  • Create a SearchBlox user
    sudo adduser searchblox
    sudo passwd searchblox
  • SearchBlox has to be installed in /opt folder, so change directory to /opt
    cd /opt
  • Download SearchBlox rpm package
    sudo wget https://d2fco3ozzrfhhd.cloudfront.net/v9.1/searchblox-9.1-0.noarch.rpm
  • Install the rpm package
    sudo rpm -ivh searchblox-9.1-0.noarch.rpm
  • Change permission for few folders
    sudo chown -R searchblox:searchblox /opt/searchblox
    sudo chmod -R 777 /opt/searchblox/logs
    sudo chmod -R 777 /opt/searchblox/elasticsearch/logs
    sudo chmod -R 777 /opt/searchblox/bin
  • Increase the map count to run Elasticsearch without issues.
    sysctl -w vm.max_map_count=262144
    Elasticsearch also requires the ability to create many memory-mapped areas. The maximum map count check checks that the kernel allows a process to have at least 262,144 memory-mapped areas and is enforced on Linux only. To pass the maximum map count check, you must configure vm.max_map_count via sysctl to be at least 262144.
  • Run/start Elasticsearch and SearchBlox services
    systemctl start sbelastic
    systemctl start searchblox
  • To stop Elasticsearch and SearchBlox services use the commands below
    systemctl stop sbelastic
    systemctl stop searchblox


To learn more about SearchBlox please visit our developer document site https://developer.searchblox.com/docs

Have more questions? Submit a request

Comments