varnishd -a :8080 -f /etc/varnish/default.vcl -s malloc,256M
Start Varnish listening on a custom port with memory cache
-a sets the listen address and port, -f loads the VCL (caching rules) file, and -s malloc,256M gives the cache a 256 MB memory-backed store, the standard choice for most deployments. Binding ports and shared memory need privileges, so run it as root or via the varnish service. Front your web server with Varnish, not the other way around.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.