Installation and Upgrade > Installation and Configuration Guide > Advanced Configurations > Configuring PTC HTTP Server and Embedded Servlet Engine With Other Options > Running PTC HTTP Server as a Windows Service
  
Running PTC HTTP Server as a Windows Service
To set up Embedded Servlet Engine or PTC HTTP Server to run as a Windows service, complete these instructions.
Running PTC HTTP Server as a Windows Service
Instructions to configure PTC HTTP Server as a Windows service have been provided using the PTC HTTP Server Ant command and without the Ant command.
Without Ant
Execute this command from the Apache/bin directory:
apache -k install -n <ServiceName>
Where <ServiceName> is a unique name to reference this service.
If you have PTC HTTP Server Ant installed, you can implement using the Ant command.
With Ant
Execute the Ant command from the PTC HTTP Server root directory:
ant -f config.xml installService -DserviceName=<ServiceName>
Where <ServiceName> is a unique name to reference this service.
Uninstalling the PTC HTTP Server Windows Service
Instructions to uninstall the PTC HTTP Server Windows service have been provided using the PTC HTTP Server Ant command and without the Ant command.
Uninstall without Ant
Execute this command from the <Apache>/bin directory.
apache -k uninstall -n <ServiceName>
Where <ServiceName> is the name you gave the PTC HTTP Server Windows service when you created it.
Uninstall with Ant
Execute this command from the <Apache> directory.
ant -f config.xml uninstallService -DserviceName <ServiceName>
Where <ServiceName> is the name you gave the PTC HTTP Server Windows service when you created it.