270. Exploring the SWS command-line tool
The only prerequisite for running the SWS command-line tool (jwebserver
) is JDK 18 and the following syntax:
Figure 13.7: jwebserver command-line tool syntax
The options of jwebserver
are straightforward. Here is a short description of the most useful ones:
-b addr
: This is the binding address. It defaults to the loopback,127.0.0.1
or::1
. For all interfaces, we can use-b 0.0.0.0
or-b ::
. The–b addr
is similar to--bind-address addr
.-p port
: This specifies the port on which the SWS will listen for incoming requests. The default port is8000
. The–p
port option is similar to--port port
.-d dir
: Thedir
variable points out the directory to be served. The default is the current directory. The–d dir
is similar to--directory dir
.-o level
: Thelevel
variable can benone
,info
(default), orverbose
and it specifies the output format. The–o level
is similar to--output level...