Start server on specified port (port 8080 by default if running as non-root user)

darkhttpd

darkhttpd {{path/to/docroot}} --port {{port}}

click the source code to copy install darkhttpd on any operating system with command-not-found.com