- 1 year ago
Configure Teamcity bundled with Tomcat servlet container, as a Windows Service
To configure TeamCity bundled with Tomcat as a Windows service, you can use Apache Commons Daemon (procrun) tool. Here's a step-by-step guide to set up TeamCity as a Windows service:
Download Apache Commons Daemon (procrun):
- Download the "Windows binaries" ZIP archive from the official Apache Commons Daemon website: https://commons.apache.org/proper/commons-daemon/download_daemon.cgi
- Extract the downloaded ZIP archive to a location on your computer.
Open a Command Prompt as Administrator and navigate to the "bin" folder inside the extracted Apache Commons Daemon directory.
Run the following command to install TeamCity as a Windows service:
service.bat install TeamCity
Open the Windows Services management console:
- Press
Win + R
, typeservices.msc
, and press Enter.
- Press
Locate the "TeamCity" service in the list, right-click on it, and select "Properties."
In the "Properties" window:
- Go to the "Log On" tab and specify the appropriate user account under which you want the service to run (either a specific user or the Local System account).
- Go to the "Recovery" tab and configure the service's recovery options in case of failures.
Click "OK" to save the changes.
Start the "TeamCity" service:
- In the Windows Services management console, right-click on the "TeamCity" service and select "Start."
Access TeamCity:
- Open a web browser and navigate to the TeamCity server URL. The default URL is usually
http://localhost:8111
.
- Open a web browser and navigate to the TeamCity server URL. The default URL is usually
TeamCity should now be running as a Windows service and be accessible through the web browser. If you encounter any issues, check the Windows Event Viewer for error logs and consult the TeamCity documentation for troubleshooting.
Note: Remember to set up and configure the required JDK and any necessary environment variables before running TeamCity. Also, ensure that there are no other applications using the same port (default: 8111) to avoid conflicts.