Use Mart Server as a Windows Service
The current version of the Mart provides two ways to start the web server that hosts Mart Server:
- Start the web server manually.
- Use a Windows service to start the web server.
For example, if you have used Tomcat as the web server to host Mart Server, you can start Tomcat in two ways:
- Start Tomcat through the startup.bat file or through a shortcut to this file.
- Use a Windows service to start Tomcat.
The benefits of using a Windows service to start a web server are as follows:
- Any user with administrative privileges on a computer can start the Windows service, whereas, only designated users can start a web server manually.
- A Windows service runs regardless of whether a user has logged in. A manually-started web server shuts down when the user who started it logs out.
Follow these steps:
- From the Windows Start menu, click All Programs, erwin, erwin Mart Server 12.0 , Create MartServer Service to create the MartServer Windows service.
Creating the service is a one-time task. After the service is created, you only have to start and stop the service.
- From the Windows Start menu, click All Programs, erwin, erwin Mart Server 12.0 , Start MartServer Service to start the web server.
You can find the log file, application.log, at C:\Windows\System32\config\systemprofile\AppData\Local\erwin\Mart Server\logs\.
Enable Logging in Local AppData
To enable logging in a user's AppData while using Mart Server as a Windows Service, do the following:
- Once the service is created, go to service properties.
- On the Log On tab, click This Account.
- Enter the credentials.
- Start the service.
Logging is now enabled for your instance of Mart Server as a Windows service. The log file, application.log, will be created at {user account}/AppData/Local/erwin/Mart Server/logs.
Copyright © 2023 Quest Software, Inc. |