Starting & Stopping ThingWorx Analytics 8.1 (Native Linux Deployment)
In this blog post, we will discuss how to Start and Stop ThingWorx Analytics, as well as some other useful triaging/troubleshooting commands. This applies to all flavors of the native Linux installation of the Application.
In order to perform these steps, you will have to have sudo or ROOT access on the host machine; as you will have to execute a shell script and be able to view the outputs.
The example screenshots below were taken on a virtual CentOS 7 Server with a GUI as ROOT user.
Checking ThingWorx Analytics Server Application Status
1. Change directory to the installation destination of the ThingWorx Analytics (TWA) Application.
In the screenshot below, the application is installed to the /opt/ThingWorxAnalyticsServer directory
2. In the install directory, there are a series of folders and files. You can use the ls command to see a list of files and folders in the installation directory.
a. You will need to go navigate one more level down into the ./ThingWorxAnalyticsServer/bin directory by using command cd ./bin
b. As you can see above, we used the pwd command to verify that we are in the correct directory.
3. In the ./ThingWorxAnalyticsServer/bin directory, there should be three shell files: configure-apirouter.sh, configure-user.sh, andtwas.sh
a. To run a status check of the application, use the command ./twas.sh status
i. This will provide a list of outputs, and a few warning messages. This is normal, see screenshot below:
b. You will have a series of services, which will have a green active (running) or red not active (stopped).