Deploying mihomo on Linux with systemd

Advanced

On a Linux server, NAS or dev box, systemd is the cleanest way to keep mihomo alive: start at boot, restart on crash, logs in one place.

Deployment steps

  1. Download the binary for your architecture (amd64 or arm64), gunzip it to /usr/local/bin/mihomo and chmod +x
  2. Place your subscription yaml at /etc/mihomo/config.yaml
  3. Create /etc/systemd/system/mihomo.service with ExecStart=/usr/local/bin/mihomo -d /etc/mihomo
  4. Run systemctl daemon-reload && systemctl enable --now mihomo

Day-two operations

Using it

Point other devices' HTTP/SOCKS proxy at the server's port 7890 to share the tunnel; add external-controller and a web dashboard to switch nodes remotely.

Ready to get started?
Download Clash Verge Rev, FlClash or the mihomo core and be up in minutes.
Go to downloads