Binary Upgrade
Work in Progress
This page is still being improved. Some details may not be fully accurate — please refer to the actual behavior when in doubt.
Before upgrading the Frpc-Hub binary, back up your data first, then replace the executable.
Upgrade Steps
1. Back Up Data
Data is stored in pb_data/ under the working directory. Back it up before upgrading:
bash
cp -r /var/lib/frpc-hub/pb_data /var/lib/frpc-hub/pb_data.bak2. Stop the Service
bash
sudo systemctl stop frpc-hubIf not using systemd, kill the process manually:
bash
pkill frpc-hub3. Download the New Version
Visit GitHub Releases for the latest version, or download via command line (Linux amd64 example):
bash
curl -LO https://github.com/luckjiawei/frpc-hub/releases/latest/download/frpc-hub-linux-amd64.tar.gz
tar -xzf frpc-hub-linux-amd64.tar.gz4. Replace the Binary
bash
sudo mv frpc-hub /usr/local/bin/frpc-hub
sudo chmod +x /usr/local/bin/frpc-hub5. Restart the Service
bash
sudo systemctl start frpc-hub
# Confirm service is running
sudo systemctl status frpc-hubRollback
If issues occur after upgrading, restore the backup and reinstall the old version:
bash
# Stop service
sudo systemctl stop frpc-hub
# Restore data backup
rm -rf /var/lib/frpc-hub/pb_data
cp -r /var/lib/frpc-hub/pb_data.bak /var/lib/frpc-hub/pb_data
# Download the old version from GitHub Releases, replace the binary, then start
sudo systemctl start frpc-hub