Install OpenJDK 8 on Linux prior to installing SearchBlox, and ensure it uses the default Java runtime. You can install OpenJDK 8 by running the following command:
su -c "yum install java-1.8.0-openjdk"
yum install wget
- SearchBlox can be installed by running the following command in path /opt :
curl -s https://s3.amazonaws.com/searchblox-downloads/v8.6/installsearchblox.sh | sh
- Check if the /etc/hosts file has an entry for the assigned IP address and host name. Restart the server once that is set up.
- vi /etc/hostname
- Manually run /opt/searchblox/startSearchBlox first (and then CTRL-C to kill after it is up and running) before the “service searchblox start” command is run.
- Go to http://localhost/searchblox/admin/main.jsp in your browser, accept the license agreement and log in using the credentials: username: admin|password: admin
- By default there would be one HTTP collection with root URL as http://edition.cnn.com, you can update your root URL if required. The collection can be indexed by clicking the index button from dashboard or Index subtab
- Click on the DashBoard sub-tab under Collections to view the indexing status.
- By default Searchblox would run with free license where you would be able to use one collection only. To try another collection you can delete the existing one and create another.
- Go to http://localhost/searchblox/search.jsp or http://localhost/searchblox/plugin/index.html to start searching.
- To start/stop/restart the service, use the following commands:
sudo service searchblox start
- To stop the service, use the following commands:
sudo service searchblox stop
- To restart the service, use the following commands:
sudo service searchblox restart
If you notice startup issues with SearchBlox on Ubuntu, please fix the issue by stopping SearchBlox and deleting the following jar file
Updated 3 years ago