Skip to content

Installation

Go install

go install github.com/fasthttpd/fasthttpd/cmd/fasthttpd@latest

Download binary

Download binary from release.

VERSION=0.4.1 GOOS=Linux GOARCH=x86_64; \
curl -fsSL "https://github.com/fasthttpd/fasthttpd/releases/download/v${VERSION}/fasthttpd_${VERSION}_${GOOS}_${GOARCH}.tar.gz" | \
tar xz fasthttpd && \
sudo mv fasthttpd /usr/sbin
  • GOOS supports Linux Darwin Windows
  • GOARCH supports x86_64 arm64 i386

Homebrew

brew tap fasthttpd/fasthttpd
brew install fasthttpd

Using yum or apt

Download deb or rpm from release, and then execute apt install or yum install.

VERSION=0.4.1 ARCH=amd64; \
curl -fsSL -O "https://github.com/fasthttpd/fasthttpd/releases/download/v${VERSION}/fasthttpd_${VERSION}_${ARCH}.deb"
sudo apt install "./fasthttpd_${VERSION}_${ARCH}.deb"
  • Default configuration path is /etc/fasthttpd/config.yaml
  • Default log directory is /var/log/fasthttpd
  • FastHttpd is automatically started by systemd

Docker

See https://hub.docker.com/r/fasthttpd/fasthttpd

docker run --rm -p 8080:80 fasthttpd/fasthttpd

Then you can hit http://localhost:8080 in your browser.

What's next?

Check out the configuration guide.