Installation

Here are the steps to install and configure the Knomi Document Analyzer server. Run the following command as root in order to install and start the server:

sudo rpm -ivh knomidocumentanalyzer-x.x.x-el7.src.rpm

If you already have a previous version of the RPM installed, use this command instead:

sudo rpm -Uvh knomidocumentanalyzer-x.x.x-el7.src.rpm

This will install to the default path of: /opt/apl/aware/knomidocumentanalyzer/

To change the server from only serving on localhost, use the following commands and replace “server.com” with the hostname for your server:

sudo sed -i 's/host=.*/host=server.com/g' /opt/apl/aware/knomidocumentanalyzer/aw_knomi_document_analyzer/knomi_document_analyzer_config.txt
sudo systemctl restart aw_knomi_document_analyzer_server

You can query the “/version” endpoint from the command line to ensure it is running correctly:

curl http://server.com:8088/documentAnalyzer/version