server
command
Syntax: hakutest server
Aliases:
hakutest srv
The hakutest server
command is used to start the Hakutest server.
If no arguments are provided, server will listen port specified in the configuration (see Server configuration).
You can override the default port with a flag -p|--port
. The port must be an integer in the range 1024 to 65535.
Examples
-
Run on the port specified in the configuration:
hakutest server
-
Run on port
8000
:hakutest server -p 8000
hakutest server --port 8000
-
Invalid port (
80
<1024
), results in error:hakutest server --port 80
Outputlisten tcp :80: bind: permission denied
exit status 1 -
Invalid port (not a number), results in error:
hakutest server --port some_string
Outputlisten tcp: lookup tcp/some_string: Servname not supported for ai_socktype
exit status 1