Linux
Command-line installation (suitable for systems without a graphical interface)
Required to install wget, unzip
- Debian、Ubuntu
- CentOS
apt -y update && apt -y install wget unzip
yum -y update && yum -y install wget unzip
Choose either deploy or web for installation
- deploy (includes web features and provides additional interactive installation, startup on boot, automatic updates, etc.)
- web (requires manual startup and manual updates)
Install deploy (Recommended)
tip
Copy and execute line by line or copy and execute all at once
- x86_64
- arrch64
mkdir serverbee
cd serverbee
wget https://db.serverbee.app/cli/v2.2.0/serverbee-deploy-x86_64-unknown-linux-musl.zip
unzip serverbee-deploy-x86_64-unknown-linux-musl.zip
./serverbee-deploy
mkdir serverbee
cd serverbee
wget https://db.serverbee.app/cli/v2.2.0/serverbee-deploy-aarch64-unknown-linux-musl.zip
unzip serverbee-deploy-aarch64-unknown-linux-musl.zip
./serverbee-deploy
Interactive Installation
Set Up Autostart
☑️ Checking the autostart option will output logs as shown in the image
Copy the command within the red frame, and execute it.
The specific code is here
cat > /etc/systemd/system/serverbee-deploy.service <<EOF
[Unit]
Description=ServerBee Deploy
After=network-online.target systemd-resolved.service
Wants=network-online.target systemd-resolved.service
[Service]
Type=oneshot
ExecStart=/root/serverbee-deploy # 去掉注释,并修改为实际路径
RemainAfterExit=yes
Environment="RUST_LOG=info"
[Install]
WantedBy=multi-user.target
EOF
systemctl enable serverbee-deploy.service
Install web
- x86_64
- arrch64
mkdir serverbee
cd serverbee
wget https://db.serverbee.app/cli/v2.2.0/serverbee-web-x86_64-unknown-linux-musl.zip
unzip serverbee-web-x86_64-unknown-linux-musl.zip
./serverbee-web
mkdir serverbee
cd serverbee
wget https://db.serverbee.app/cli/v2.2.0/serverbee-web-aarch64-unknown-linux-musl.zip
unzip serverbee-web-aarch64-unknown-linux-musl.zip
./serverbee-web
Custom port number
./serverbee-web -p 9528