下载地址

cd /tmp/

# wget https://vip.123pan.cn/1815238395/download/n9e/categraf-v0.3.38/categraf-v0.3.38-windows-amd64.zip
wget https://vip.123pan.cn/1815238395/download/n9e/categraf-v0.3.38/categraf-v0.3.38-linux-amd64.tar.gz
tar xzvf categraf-v0.3.38-linux-amd64.tar.gz

rsync -avzP /tmp/categraf-v0.3.38-linux-amd64/categraf /opt/categraf/
systemctl status categraf
systemctl restart categraf
systemctl status categraf

2023-11-06T05:08:00.png

或者直接

cd /opt/categraf && rm -f categraf ; wget https://vip.123pan.cn/1815238395/download/n9e/categraf-v0.3.38/categraf -O categraf ; chmod a+x categraf ; systemctl status categraf ; systemctl restart categraf ; sleep 3; systemctl status categraf
cd /opt/categraf && rm -f categraf ; wget https://vip.123pan.cn/1815238395/download/n9e/categraf-v0.3.38/categraf -O categraf ; chmod a+x categraf ; killall categraf ; nohup ./categraf 2>/dev/null &
最后修改:2023 年 11 月 06 日
如果觉得我的文章对你有用,请随意赞赏