文件操作 - alpine.md
返回文件管理
返回主菜单
删除本文件
文件: /usr/local/src/netdata/packaging/installer/methods/alpine.md
编辑文件内容
<!-- --- 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 python 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 cd netdata # build it, install it, start it ./netdata-installer.sh # make Netdata start at boot echo -e "#!/usr/bin/env bash\n/usr/sbin/netdata" >/etc/local.d/netdata.start chmod 755 /etc/local.d/netdata.start # make Netdata stop at shutdown echo -e "#!/usr/bin/env bash\nkillall netdata" >/etc/local.d/netdata.stop chmod 755 /etc/local.d/netdata.stop # enable the local service to start automatically rc-update add local ```
修改文件时间
将文件时间修改为当前时间的前一年
删除文件