--- tags: CentOS telegraf --- # CentOS telegraf 安裝 <font size=4>首先選擇要下載檔案的路徑</font> **<font size=4>`wget https://dl.influxdata.com/telegraf/releases/telegraf-1.10.4-1.x86_64.rpm`</font>** <font size=4>在檔案的路徑下下指令選擇本地壓縮檔解壓縮安裝</font> **<font size=4>`sudo yum localinstall telegraf-1.10.4-1.x86_64.rpm`</font>** <font size=4>修改config</font> **<font size=4>`vim /etc/telegraf/telegraf.conf`</font>** <font size=4>啟動</font> **<font size=4>`systemctl start telegraf`</font>** <font size=4>設定自動啟動</font> **<font size=4>`systemctl enable telegraf`</font>** <font size=4>查看服務有沒有啟動</font> **<font size=4>`systemctl status telegraf`</font>** <font size=4>關閉</font> **<font size=4>`systemctl stop telegraf`</font>** <font size=4>重新啟動</font> **<font size=4>`systemctl restart telegraf`</font>**