JWEBSERVER(1) JDK Commands JWEBSERVER(1) (NAME) jwebserver-openjdk21 - OpenJDK 21 (SYNOPSIS) jwebserver [] . (OPTIONS) . (DESCRIPTION) jwebserver HTTP () . () . HTTP/1.1 HTTP/2 HTTPS . (idempotent) HEAD GET . 501 - Not Implemented 405 - Not Allowed . GET : o . o (index) . o . (Symbolic links) . MIME . .html text/html .java text/plain . jwebserver jdk.httpserver java -m jdk.httpserver . com.sun.net.httpserver . com.sun.net.httpserver.SimpleFileServer . (USAGE) jwebserver [-b bind address] [-p port] [-d directory] [-o none|info|verbose] [-h to show options] [-version to show version information] (OPTIONS) -h -? --help . -b addr --bind-address addr (bind) . : 127.0.0.1 ::1 ( / loopback). -b 0.0.0.0 -b :: . -d dir --directory dir . : . -o level --output level . none | info | verbose. : info. -p port --port port (port) . : 8000. -version --version . Ctrl + C . (STARTING THE SERVER) << >> : $ jwebserver System.out . : $ jwebserver Binding to loopback by default. For all interfaces use "-b 0.0.0.0" or "-b ::". Serving /cwd and subdirectories on 127.0.0.1 port 8000 URL http://127.0.0.1:8000/ (CONFIGURATION) 8000 . -b -p . : $ jwebserver -b 0.0.0.0 Serving /cwd and subdirectories on 0.0.0.0 (all interfaces) port 8000 URL http://123.456.7.891:8000/ . . 9000 : $ jwebserver -p 9000 . -d . (log) . : 127.0.0.1 - - [10/Feb/2021:14:34:11 +0000] "GET /some/subdirectory/ HTTP/1.1" 200 - -o . info . verbose . (STOPPING THE SERVER) . SIGINT (Ctrl+C ) . (HELP OPTION) -h jwebserver . JDK 21 2023 JWEBSERVER(1)