How do I get started with SearchBlox Server for Linux/Unix?

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
  • Go to http://localhost:8080/searchblox/admin/main.jsp in your browser, accept the license agreement
  • Give the username as admin
  • You will see a temp password displayed the first time you go to the login page, after accepting the license agreement. Use the temp password to log in, then store or change the password for future login.
Steps to Uninstall/Remove SearchBlox

To uninstall SearchBlox, please use the below command:
yum remove searchblox

Default Port 8080

Note:The default port would be 8080 and It will not run in port 80



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

Have more questions? Submit a request

Comments

  • Avatar
    Brown Todd

    Does this method run more effectively than the Tomcat WAR file? My install of the WAR file seems to run slow on REFRESH.