-
-
Notifications
You must be signed in to change notification settings - Fork 637
Linux
Installing and updating Statping on Linux can be done by downloading the latest tar.gz file, unzipping, and running the executable. Or run the install/upgrade script below.
curl -o- -L https://statping.com/install.sh | bash
If you are using snap, you can simply run this command to install Statping.
sudo snap install statping
Statping requires sass
to be installed to the local machine to compile SCSS into CSS if you want to use the Custom Theme features.
- Apt:
apt install ruby-sass -y
- Node:
npm install sass -g
- Ruby:
gem install sass
Setting up a systemd service is a great way to make sure your Statping server will automatically reboot when needed. You can use the file below for your service. You should have Statping already installed by this step.
[Unit]
Description=Statping Server
After=network.target
After=systemd-user-sessions.service
After=network-online.target
[Service]
Type=simple
Restart=always
ExecStart=/usr/local/bin/statping
WorkingDirectory=/usr/local/bin
[Install]
WantedBy=multi-user.target
Then you can enable and start your systemd service with:
systemctl daemon-reload
systemctl enable statping.service
systemctl start statping
You're Statping server will now automatically restart when your server restarts.
Please note that Statping's files (logs, config and database) will be created inside "/usr/local/bin/" after the service is ran for the first time, unless you change "WorkingDirectory" configuration option in the systemd service configuration as seen above.
You can even run Statping on your Raspberry Pi by installing the precompiled binary from Latest Releases. For the Raspberry Pi 3 you'll want to download the statping-linux-arm7.tar.gz
file. Be sure to change VERSION
to the latest version in Releases, and include the 'v'.
VERSION=$(curl -sL "https://github.com/statping/statping/releases/latest" | grep -o 'tag/[v.0-9]*' | awk -F/ '{print $2}' | head -n1)
wget https://github.com/statping/statping/releases/download/$VERSION/statping-linux-arm-7.tar.gz
tar -xvzf statping-linux-arm-7.tar.gz
chmod +x statping
mv statping /usr/local/bin/statping
statping version
The Docker image is using the Statping Alpine binary since it's so incredibly small. You can run it on your own alpine image by downloading statping-linux-alpine.tar.gz
from Latest Releases.
Statping.com | Demo | Docker | Notifiers | API