Installing Appian as a Windows Service

Installing Tomcat as a Windows Service

To install the Tomcat Windows Service, complete the following:

  1. Open a command prompt.
    • Run C:\Windows\System32\cmd.exe as Administrator.
  2. Change directories to the <APPIAN_HOME>\tomcat\apache-tomcat\bin directory.
  3. Type the following command: service.bat install.
    • A message is displayed stating "Service AppianWeb installed" and a service named "Appian Web Application" is added to the Services Console with a Startup Type setting of Manual.

You can now start and stop Tomcat from the Windows Services manager.

Startup and shutdown logs are written to <APPIAN_HOME>\tomcat\apache-tomcat\bin\startup.log and <APPIAN_HOME>\tomcat\apache-tomcat\bin\shutdown.log when the service starts and stops Tomcat. These logs are written in addition to the logs produced by the application server when Tomcat is not run as a windows service.

Uninstalling Tomcat as a Windows Service

To uninstall the Tomcat Windows Service, complete the following:

  1. Open a command prompt.
    • You must run C:\Windows\System32\cmd.exe as Administrator.
  2. Change directories to the <APPIAN_HOME>\tomcat\apache-tomcat\bin directory.
  3. Type the following command: service.bat uninstall
    • A message is displayed stating "Service AppianWeb removed" and the service named "Appian Web Application" is removed.

Installing Engines as a Windows Service

The following details how to install the Appian Engines and Search Server as a Windows Service. These steps assume that you have a fully configured installation following the Windows Installation Guide

Service Installation

  1. Uninstall any existing service installation if a legacy Appian installation exists on the same server.
  2. Setup the service manager password as an environment variable.
    1. Open Window's Advanced System Settings.
      • Accessing this window varies between Windows OS
    2. In the System Properties window, click the Advanced tab
    3. Click on the Environment Variables button
    4. Create a new system variable.
      1. Variable Name: APPIAN_SM_PASSWORD
      2. Variable Password: <SERVICE_MANAGER_PASSWORD>
    5. Click OK and close the system setting window.
  3. Open a command prompt.
    • You must have administrator rights on the server to install Appian as a Windows service.
    • Run the command prompt (cmd.exe) as Administrator.
  4. Change directories to <APPIAN_HOME>\services\bin\win-service\.
  5. Type service install to create the Windows service. The install command creates a Windows service called Appian Service Manager with the description Appian Service Manager and Engines.
  6. Use the Windows Services management console to start and stop the service.

When the stop command is sent from the management console, the engines stop quickly in order to allow a server shutdown or reboot to occur immediately afterward. This quick-stop shutdown mode is not suitable for subsequently upgrading your Appian installation to a newer version, which requires a shutdown that executes a checkpoint. When shutting down the Appian engines as part of an upgrade, you must run the stop script before stopping the service.

Service Uninstallation

  1. Run the command prompt (cmd.exe) as Administrator.
  2. From the services\bin\win-service\ directory, run service uninstall to remove the Windows service.

Installing Search Server as a Windows Service

To allow the search server to continue to run after the OS user who started it logs out and control starting and stopping from the Windows Service management console, install it as a Windows Service.

Unlike the Appian engines, there are no special considerations regarding checkpointing that need to be considered. The search server will stop immediately when Windows issues the stop command.

See also: Search Server

Installation

  1. Open a command prompt
    • You must have administrator rights on the server to install Appian as a Windows service.
    • Run the command prompt (cmd.exe) as Administrator.
  2. Change directories to <APPIAN_HOME>\search-server\bin\.
  3. Type service install to create the Windows service. The install command creates a Windows service called Appian Search with the description Appian Search.
    • Use the Windows Services management console to start and stop the service.

Uninstallation

  1. Open a command prompt
    • You must have administrator rights on the server to install Appian as a Windows service.
    • Run the command prompt (cmd.exe) as Administrator.
  2. From the <APPIAN_HOME>\search-server\bin\ directory, run service uninstall to remove the Windows service.

Installing Data Server as a Windows Service

To control starting and stopping the data server from the Windows Service management console, install it as a Windows Service. This will allow the data server to continue to run after the OS user who started it logs out. Before installing the data server as a Windows Service, first ensure that Appian engines are setup to run as a service.

Unlike the Appian engines, there are no special considerations regarding checkpointing that need to be considered. The data server will stop immediately when Windows issues the stop command.

Install the Service

  1. Open a command prompt
    • You must have administrator rights on the server to install Appian as a Windows service.
    • Run the command prompt (cmd.exe) as Administrator.
  2. Change directories to <APPIAN_HOME>\data-server\bin\.
  3. Enter service install to create the Windows service. The install command creates a Windows service called Appian Data Server with the description Appian Data Server.
    • Use the Windows Services management console to start and stop the service.

Uninstall the Service

  1. Open a command prompt
    • You must have administrator rights on the server to install Appian as a Windows service.
    • Run the command prompt (cmd.exe) as Administrator.
  2. From the <APPIAN_HOME>\data-server\bin\ directory, run service uninstall to remove the Windows service.
Open in Github Built: Wed, Aug 16, 2023 (04:37:39 PM)

On This Page

FEEDBACK