Install & run
Check platforms & minimum requirements, then install.
1. Install
Linux, macOS and FreeBSD — the installer detects your system:
curl -fsSL https://install.xinproxy.com/ | shWindows (PowerShell)
curl.exe -fsSL https://install.xinproxy.com/install.ps1 -o install-xin.ps1
powershell -NoProfile -ExecutionPolicy Bypass -File ./install-xin.ps12. Check your config
The packaged configuration is /etc/xinginx/xinginx.conf. To check an existing nginx file:
xinginx -t -c /etc/nginx/nginx.confFix reported errors before starting. Directive reference →
3. Run
On Linux with systemd, edit the packaged configuration and ensure its listen ports are available:
sudo xinginx -t -c /etc/xinginx/xinginx.conf
sudo systemctl enable --now xinginxFor a local trial, save this as xin.conf in a writable directory:
daemon off;
pid xin.pid;
error_log stderr;
events { worker_connections 1024; }
http {
access_log off;
server {
listen 8080;
location / { return 200 "hello from xin\n"; }
}
}xinginx -p "$PWD/" -t -c xin.conf
xinginx -p "$PWD/" -c xin.conf
# In another terminal:
curl http://127.0.0.1:8080/Windows: extract the ZIP and run xinginx.exe -p . -c xin.conf.sample.
Reload
sudo xinginx -t && sudo xinginx -s reloadFor a custom configuration, use the same -p and -c arguments when sending signals.