How do I install SearchBlox on Ubuntu?

You can install SearchBlox 9.1 on Ubuntu using below step by step info:

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 apt install openjdk-11-jdk -y
  • The below command can be used if the above does not work. Refer ubuntu forums for more help in installation of java 11
    sudo add-apt-repository ppa:openjdk-r/ppa && sudo apt-get update -q && sudo apt install -y openjdk-11-jdk
  • 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 or install using sudo commands as below.
  • Create a SearchBlox user by giving the necessary details
    sudo adduser searchblox
  • SearchBlox has to be installed in /opt folder, so change directory to /opt
    cd /opt
  • Download SearchBlox debain package
    sudo wget https://d2fco3ozzrfhhd.cloudfront.net/v9.1/searchblox_9.1-0_all.deb
  • Install the debian package
    sudo dpkg -i searchblox_9.1-0_all.deb
  • Change permission for a 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.
  • Go to start.ini and give port 8080 at line number 143
  • Run/start Elasticsearch and SearchBlox services
    systemctl start sbelastic
    systemctl start searchblox
  • To stop Elasticsearch and SearchBlox 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