mirror of
https://github.com/netdata/netdata.git
synced 2025-04-15 01:58:34 +00:00

- the `python` package doesn't exist since Alpine 3.5 (dec 2016), use `python3` instead - create a proper start stript instead of using `/etc/local.d`
40 lines
1.3 KiB
Markdown
40 lines
1.3 KiB
Markdown
<!--
|
|
title: "Install Netdata on Alpine 3.x"
|
|
custom_edit_url: https://github.com/netdata/netdata/edit/master/packaging/installer/methods/alpine.md
|
|
-->
|
|
|
|
# Install Netdata on Alpine 3.x
|
|
|
|
Execute these commands to install Netdata in Alpine Linux 3.x:
|
|
|
|
```sh
|
|
# install required packages
|
|
apk add alpine-sdk bash curl libuv-dev zlib-dev util-linux-dev libmnl-dev gcc make git autoconf automake pkgconfig python3 logrotate
|
|
|
|
# if you plan to run node.js Netdata plugins
|
|
apk add nodejs
|
|
|
|
# download Netdata - the directory 'netdata' will be created
|
|
git clone https://github.com/netdata/netdata.git --depth=100 --recursive
|
|
cd netdata
|
|
|
|
# build it, install it, start it
|
|
./netdata-installer.sh
|
|
|
|
# make Netdata start at boot and stop at shutdown
|
|
cat > /etc/init.d/netdata << EOF
|
|
#!/sbin/openrc-run
|
|
|
|
name="netdata"
|
|
command="/usr/sbin/$SVCNAME"
|
|
|
|
depend() {
|
|
need net localmount
|
|
after firewall
|
|
}
|
|
EOF
|
|
```
|
|
|
|
If you have installed Netdata in another directory, you have to change the content of the `command` variable in that script.
|
|
|
|
[](<>)
|