2. Starting and Stopping the Web Service

The Web Service can be started from the GUI, from the HammerDB CLI, or directly with the hammerdbws executable. The CLI commands wsport, wsstart, wsstatus and wsstop control the Web Service port, startup, status and shutdown.

hammerdb>wsport
Web Service Port set to 8080

hammerdb>wsstart
HammerDB Web Service v6.0
Copyright © HammerDB Ltd hosted by tpc.org 2019-2026
Type "help" for a list of commands
Starting HammerDB Web Service on port 8080

hammerdb>wsstatus
Web Service running: Service Environment

hammerdb>wsstop
Stopping HammerDB Web Service on port 8080

The Web Service can also be started directly from the HammerDB installation directory. With no argument, or with the wait argument, the Web Service starts and waits for HTTP requests. With the nowait argument it starts and returns an interactive hammerws prompt. In deployments behind a web server or reverse proxy, HammerDB v6.0 can also run the Web Service as an SCGI application.

./hammerdbws
./hammerdbws wait
./hammerdbws nowait
./hammerdbws scgi

After the Web Service has started, open the configured port in a browser. For a local default installation this is:

http://localhost:8080/jobs