mirror of https://github.com/statping/statping
Updated Linux (markdown)
parent
70f9713ebc
commit
2e9f17a079
28
Linux.md
28
Linux.md
|
@ -2,13 +2,13 @@
|
|||
Installing Statping on Linux is a 1 line command. It's that easy.
|
||||
```
|
||||
bash <(curl -s https://assets.statup.io/install.sh)
|
||||
statup version
|
||||
statping version
|
||||
```
|
||||
[](https://snapcraft.io/statup)
|
||||
[](https://snapcraft.io/statping)
|
||||
|
||||
## Systemd Service
|
||||
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.
|
||||
###### /etc/systemd/system/statup.service
|
||||
###### /etc/systemd/system/statping.service
|
||||
```
|
||||
[Unit]
|
||||
Description=Statping Server
|
||||
|
@ -19,7 +19,7 @@ After=network-online.target
|
|||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
ExecStart=/usr/local/bin/statup
|
||||
ExecStart=/usr/local/bin/statping
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
@ -28,24 +28,24 @@ Then you can enable and start your systemd service with:
|
|||
```
|
||||
systemctl daemon-reload
|
||||
|
||||
systemctl enable statup.service
|
||||
systemctl enable statping.service
|
||||
|
||||
systemctl start statup
|
||||
systemctl start statping
|
||||
```
|
||||
You're Statping server will now automatically restart when your server restarts.
|
||||
|
||||
## Raspberry Pi
|
||||
You can even run Statping on your Raspberry Pi by installing the precompiled binary from [Latest Releases](https://github.com/hunterlong/statup/releases/latest). For the Raspberry Pi 3 you'll want to download the `statup-linux-arm7.tar.gz` file. Be sure to change `VERSION` to the latest version in Releases, and include the 'v'.
|
||||
You can even run Statping on your Raspberry Pi by installing the precompiled binary from [Latest Releases](https://github.com/hunterlong/statping/releases/latest). 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 -s "https://github.com/hunterlong/statup/releases/latest" | grep -o 'tag/[v.0-9]*' | awk -F/ '{print $2}')
|
||||
wget https://github.com/hunterlong/statup/releases/download/$VERSION/statup-linux-arm7.tar.gz
|
||||
tar -xvzf statup-linux-arm7.tar.gz
|
||||
chmod +x statup
|
||||
mv statup /usr/local/bin/statup
|
||||
VERSION=$(curl -s "https://github.com/hunterlong/statping/releases/latest" | grep -o 'tag/[v.0-9]*' | awk -F/ '{print $2}')
|
||||
wget https://github.com/hunterlong/statping/releases/download/$VERSION/statping-linux-arm7.tar.gz
|
||||
tar -xvzf statping-linux-arm7.tar.gz
|
||||
chmod +x statping
|
||||
mv statping /usr/local/bin/statping
|
||||
|
||||
statup version
|
||||
statping version
|
||||
```
|
||||
|
||||
## Alpine Linux
|
||||
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 `statup-linux-alpine.tar.gz` from [Latest Releases](https://github.com/hunterlong/statup/releases/latest).
|
||||
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](https://github.com/hunterlong/statping/releases/latest).
|
Loading…
Reference in New Issue