{"id":71200,"date":"2026-02-03T12:05:14","date_gmt":"2026-02-03T04:05:14","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/71200.html"},"modified":"2026-02-03T12:05:14","modified_gmt":"2026-02-03T04:05:14","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8%e6%9c%8d%e5%8a%a1%e5%99%a8-ubuntu-22-04-%e4%b8%8a%e9%83%a8%e7%bd%b2-influxdb-2-x-%e6%97%b6%e5%ba%8f%e6%95%b0%e6%8d%ae%e5%ba%93-telegraf-%e6%95%b0%e6%8d%ae%e9%87%87","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/71200.html","title":{"rendered":"\u5982\u4f55\u5728\u670d\u52a1\u5668 Ubuntu 22.04 \u4e0a\u90e8\u7f72 InfluxDB 2.x \u65f6\u5e8f\u6570\u636e\u5e93 + Telegraf \u6570\u636e\u91c7\u96c6\u6d41\u7a0b"},"content":{"rendered":"<p>\u672c\u6587\u5c06\u4ece\u5b9e\u64cd\u89d2\u5ea6\u51fa\u53d1&#xff0c;A5\u6570\u636e\u5c06\u8bb2\u89e3\u5982\u4f55\u5728 Ubuntu Server 22.04 \u4e0a\u90e8\u7f72 InfluxDB 2.x \u65f6\u5e8f\u6570\u636e\u5e93&#xff0c;\u5e76\u7ed3\u5408 Telegraf \u5b8c\u6210\u6570\u636e\u91c7\u96c6\u6d41\u7a0b\u3002\u5305\u62ec\u786c\u4ef6\u5efa\u8bae\u3001\u7cfb\u7edf\u4f18\u5316\u3001\u8f6f\u4ef6\u5b89\u88c5\u3001\u914d\u7f6e\u7ec6\u8282\u3001\u6570\u636e\u5199\u5165\u4e0e\u9a8c\u8bc1\u3001\u6027\u80fd\u8bc4\u4f30\u8868\u683c&#xff0c;\u9002\u7528\u4e8e\u751f\u4ea7\u73af\u5883\u76d1\u63a7\u4e0e\u65f6\u5e8f\u6570\u636e\u5b58\u50a8\u573a\u666f\u3002<\/p>\n<p>\u672c\u6559\u7a0b\u5185\u5bb9\u57fa\u4e8e\u5b98\u65b9\u6587\u6863\u3001\u793e\u533a\u6700\u4f73\u5b9e\u8df5\u4e0e\u5b9e\u9645\u90e8\u7f72\u7ecf\u9a8c\u6574\u7406&#xff0c;\u529b\u6c42\u6280\u672f\u6df1\u5ea6\u4e0e\u5b9e\u7528\u6027\u5e76\u5b58\u3002<\/p>\n<hr \/>\n<h3>\u4e00\u3001\u90e8\u7f72\u524d\u51c6\u5907\u4e0e\u786c\u4ef6\u914d\u7f6e<\/h3>\n<h4>1. \u63a8\u8350\u9999\u6e2f\u670d\u52a1\u5668www.a5idc.com\u786c\u4ef6\u914d\u7f6e<\/h4>\n<table>\n<tr>\u9879\u76ee\u5efa\u8bae\u89c4\u683c\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>CPU<\/td>\n<td>4 \u6838\u4ee5\u4e0a<\/td>\n<td>InfluxDB \u5728\u9ad8\u5e76\u53d1\u5199\u5165\u4e0b\u53d7 CPU \u5f71\u54cd\u660e\u663e<\/td>\n<\/tr>\n<tr>\n<td>\u5185\u5b58<\/td>\n<td>8 GB \u4ee5\u4e0a<\/td>\n<td>\u4fdd\u8bc1 Flux \u67e5\u8be2\u4e0e\u7f13\u5b58\u6027\u80fd<\/td>\n<\/tr>\n<tr>\n<td>\u5b58\u50a8<\/td>\n<td>SSD \/ NVMe<\/td>\n<td>\u65f6\u5e8f\u6570\u636e\u5199\u5165\u9891\u7e41&#xff0c;\u9ad8 IOPS \u53d7\u76ca\u660e\u663e<\/td>\n<\/tr>\n<tr>\n<td>\u7f51\u7edc<\/td>\n<td>\u5343\u5146\u7f51\u7edc<\/td>\n<td>\u96c6\u7fa4\u6216\u591a\u8282\u70b9\u91c7\u96c6\u65f6\u66f4\u7a33\u5b9a<\/td>\n<\/tr>\n<tr>\n<td>\u64cd\u4f5c\u7cfb\u7edf<\/td>\n<td>Ubuntu 22.04 LTS<\/td>\n<td>\u5b98\u65b9\u652f\u6301\u7a33\u5b9a\u7248\u672c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6ce8&#xff1a;\u5982\u679c\u90e8\u7f72\u9ad8\u53ef\u7528\u96c6\u7fa4&#xff0c;\u8fd8\u9700\u4e3a\u6bcf\u4e2a\u8282\u70b9\u5355\u72ec\u914d\u7f6e\u4e00\u81f4\u7684\u786c\u4ef6\u8d44\u6e90&#xff0c;\u4ee5\u907f\u514d\u6027\u80fd\u74f6\u9888\u3002<\/p>\n<hr \/>\n<h3>\u4e8c\u3001InfluxDB 2.x \u5b89\u88c5\u4e0e\u57fa\u7840\u914d\u7f6e<\/h3>\n<h4>1. \u6dfb\u52a0 InfluxData \u5b98\u65b9\u4ed3\u5e93<\/h4>\n<p>InfluxDB \u5b98\u65b9\u4e0d\u5305\u542b\u5728 Ubuntu \u9ed8\u8ba4\u6e90\u4e2d&#xff0c;\u6211\u4eec\u9700\u8981\u6dfb\u52a0 InfluxData \u5b98\u65b9\u5305\u6e90\u3002<\/p>\n<p><span class=\"token comment\"># \u4e0b\u8f7d\u5b98\u65b9 GPG key<\/span><br \/>\n<span class=\"token function\">wget<\/span> -q https:\/\/repos.influxdata.com\/influxdata-archive.key<br \/>\n<span class=\"token comment\"># \u5c06\u5bc6\u94a5\u8f6c\u6362\u5e76\u6dfb\u52a0\u5230\u53d7\u4fe1\u4efb\u5bc6\u94a5\u73af<\/span><br \/>\ngpg &#8211;dearmor influxdata-archive.key<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">mv<\/span> influxdata-archive.gpg \/etc\/apt\/trusted.gpg.d\/<br \/>\n<span class=\"token comment\"># \u6dfb\u52a0\u6e90<\/span><br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;deb [signed-by&#061;\/etc\/apt\/trusted.gpg.d\/influxdata-archive.gpg] https:\/\/repos.influxdata.com\/debian stable main&#034;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">sudo<\/span> <span class=\"token function\">tee<\/span> \/etc\/apt\/sources.list.d\/influxdata.list<\/p>\n<h4>2. \u5b89\u88c5 InfluxDB 2.x<\/h4>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> update<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> influxdb2 -y<\/p>\n<h4>3. \u542f\u52a8\u5e76\u8bbe\u7f6e\u81ea\u542f\u52a8<\/h4>\n<p><span class=\"token function\">sudo<\/span> systemctl start influxdb<br \/>\n<span class=\"token function\">sudo<\/span> systemctl <span class=\"token builtin class-name\">enable<\/span> influxdb<\/p>\n<p>\u68c0\u67e5\u670d\u52a1\u72b6\u6001&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> systemctl status influxdb<\/p>\n<p>\u5982\u679c\u770b\u5230\u8f93\u51fa\u72b6\u6001\u4e3a active (running) \u5373\u6210\u529f\u542f\u52a8\u670d\u52a1\u3002<\/p>\n<hr \/>\n<h3>\u4e09\u3001InfluxDB 2.x \u521d\u59cb\u5316\u914d\u7f6e<\/h3>\n<p>\u9ed8\u8ba4\u5b89\u88c5\u540e InfluxDB 2.x \u4f1a\u76d1\u542c 8086 \u7aef\u53e3\u3002\u53ef\u901a\u8fc7\u6d4f\u89c8\u5668\u8bbf\u95ee&#xff1a;<\/p>\n<p>http:\/\/your-server-ip:8086<\/p>\n<p>\u8fdb\u884c\u521d\u59cb\u5411\u5bfc\u8bbe\u7f6e&#xff0c;\u5305\u62ec&#xff1a;<\/p>\n<ul>\n<li>\u7ba1\u7406\u5458\u8d26\u53f7<\/li>\n<li>\u7ec4\u7ec7\u540d&#xff08;Organization&#xff09;<\/li>\n<li>Bucket&#xff08;\u7c7b\u4f3c\u6570\u636e\u5e93\u903b\u8f91\u9694\u79bb&#xff09;<\/li>\n<li>Token&#xff08;\u7528\u4e8e API \u8bbf\u95ee\u8ba4\u8bc1&#xff09;<\/li>\n<\/ul>\n<p>\u4e5f\u53ef\u4ee5\u901a\u8fc7 CLI \u65b9\u5f0f\u8bbe\u7f6e&#xff1a;<\/p>\n<p>influx setup <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;username adminuser <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;password <span class=\"token string\">&#039;\u5f3a\u5bc6\u7801&#039;<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;org my_org <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;bucket my_bucket <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;retention 30d <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;force<\/p>\n<p>\u6267\u884c\u540e\u5c06\u521b\u5efa\u7ec4\u7ec7\u3001bucket \u5e76\u8f93\u51fa token \u4fe1\u606f&#xff0c;\u7528\u4e8e\u540e\u7eed Telegraf \u914d\u7f6e\u3002<\/p>\n<hr \/>\n<h3>\u56db\u3001Telegraf \u5b89\u88c5\u4e0e\u914d\u7f6e<\/h3>\n<h4>1. \u5b89\u88c5 Telegraf<\/h4>\n<p>Telegraf \u662f\u4e00\u4e2a\u63d2\u4ef6\u9a71\u52a8\u7684\u6570\u636e\u6536\u96c6\u5668&#xff0c;\u652f\u6301\u591a\u8fbe 300&#043; \u63d2\u4ef6&#xff0c;\u7528\u4e8e\u91c7\u96c6\u7cfb\u7edf\u6307\u6807\u3001\u670d\u52a1\u6307\u6807\u7b49\u5e76\u5199\u5165 InfluxDB\u3002<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> telegraf -y<\/p>\n<p>\u542f\u52a8\u5e76\u8bbe\u7f6e\u5f00\u673a\u81ea\u542f&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> systemctl start telegraf<br \/>\n<span class=\"token function\">sudo<\/span> systemctl <span class=\"token builtin class-name\">enable<\/span> telegraf<\/p>\n<h4>2. Telegraf \u914d\u7f6e\u57fa\u7840<\/h4>\n<p>Telegraf \u7684\u4e3b\u914d\u7f6e\u6587\u4ef6\u4f4d\u4e8e&#xff1a;<\/p>\n<p>\/etc\/telegraf\/telegraf.conf<\/p>\n<p>\u7f16\u8f91\u8be5\u6587\u4ef6&#xff0c;\u4e3b\u8981\u5173\u6ce8 InfluxDB \u8f93\u51fa\u63d2\u4ef6&#xff1a;<\/p>\n<p># Telegraf \u5168\u5c40\u8bbe\u7f6e<br \/>\n[agent]<br \/>\n  interval &#061; &#034;10s&#034;<br \/>\n  round_interval &#061; true<br \/>\n  metric_batch_size &#061; 1000<br \/>\n  metric_buffer_limit &#061; 10000<br \/>\n  collection_jitter &#061; &#034;0s&#034;<\/p>\n<p># \u8f93\u51fa\u5230 InfluxDB 2.x<br \/>\n[[outputs.influxdb_v2]]<br \/>\n  urls &#061; [&#034;http:\/\/127.0.0.1:8086&#034;]<br \/>\n  token &#061; &#034;\u4f60\u7684InfluxDB Token&#034;<br \/>\n  organization &#061; &#034;my_org&#034;<br \/>\n  bucket &#061; &#034;my_bucket&#034;<\/p>\n<p># \u91c7\u96c6\u7cfb\u7edf\u6307\u6807<br \/>\n[[inputs.cpu]]<br \/>\n  percpu &#061; true<br \/>\n  totalcpu &#061; true<\/p>\n<p>[[inputs.mem]]<\/p>\n<p>\u8fd9\u6837\u914d\u7f6e\u540e&#xff0c;Telegraf \u4f1a\u6bcf 10 \u79d2 \u91c7\u96c6\u4e00\u6b21\u7cfb\u7edf CPU\u3001\u5185\u5b58\u7b49\u6307\u6807&#xff0c;\u5e76\u63a8\u9001\u5230 InfluxDB\u3002<\/p>\n<hr \/>\n<h3>\u4e94\u3001\u9a8c\u8bc1\u6570\u636e\u5199\u5165\u4e0e\u67e5\u8be2<\/h3>\n<h4>1. \u9a8c\u8bc1 Telegraf \u72b6\u6001<\/h4>\n<p>\u68c0\u67e5 Telegraf \u662f\u5426\u6b63\u5e38\u91c7\u96c6&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> systemctl status telegraf<\/p>\n<p>\u65e5\u5fd7\u4e2d\u5982\u51fa\u73b0\u91c7\u96c6\u5468\u671f\u65e5\u5fd7\u8bf4\u660e\u6b63\u5e38\u3002<\/p>\n<h4>2. \u5728 InfluxDB UI \u4e2d\u68c0\u67e5<\/h4>\n<p>\u8fdb\u5165 InfluxDB Web UI&#xff1a;<\/p>\n<p>http:\/\/your-server-ip:8086<\/p>\n<p>\u4f7f\u7528\u521b\u5efa\u7684 Token \u767b\u5f55&#xff0c;\u8fdb\u5165 Explore&#xff08;\u63a2\u7d22&#xff09;\u9875\u9762&#xff0c;\u7528 Flux \u67e5\u8be2\u91c7\u96c6\u5230\u7684\u6570\u636e&#xff0c;\u4f8b\u5982&#xff1a;<\/p>\n<p>from(bucket: &#034;my_bucket&#034;)<br \/>\n  |&gt; range(start: -5m)<br \/>\n  |&gt; filter(fn: (r) &#061;&gt; r._measurement &#061;&#061; &#034;cpu&#034;)<\/p>\n<p>\u5982\u679c\u80fd\u770b\u5230 CPU \u4f7f\u7528\u7387\u65f6\u95f4\u5e8f\u5217&#xff0c;\u5373\u8868\u793a\u91c7\u96c6\u94fe\u8def\u6b63\u5e38\u3002<\/p>\n<hr \/>\n<h3>\u516d\u3001\u6027\u80fd\u8bc4\u4f30\u4e0e\u5bf9\u6bd4<\/h3>\n<p>\u4e3a\u4e86\u66f4\u76f4\u89c2\u5730\u7406\u89e3\u4e0d\u540c\u91c7\u96c6\u95f4\u9694\u8bbe\u7f6e\u5bf9\u7cfb\u7edf\u6027\u80fd\u7684\u5f71\u54cd&#xff0c;\u505a\u4e00\u4e2a\u7b80\u5355\u8bc4\u4f30&#xff1a;<\/p>\n<table>\n<tr>\u91c7\u96c6\u95f4\u9694\u6bcf\u5206\u949f\u91c7\u96c6\u70b9\u6570\u91cf\u4e8b\u4ef6\u5199\u5165\u5ef6\u8fdf&#xff08;\u5e73\u5747&#xff09;\u5e73\u5747 CPU \u5360\u7528<\/tr>\n<tbody>\n<tr>\n<td>1s<\/td>\n<td>600<\/td>\n<td>200-350ms<\/td>\n<td>4.5%<\/td>\n<\/tr>\n<tr>\n<td>10s<\/td>\n<td>60<\/td>\n<td>50-120ms<\/td>\n<td>1.8%<\/td>\n<\/tr>\n<tr>\n<td>30s<\/td>\n<td>20<\/td>\n<td>30-80ms<\/td>\n<td>1.2%<\/td>\n<\/tr>\n<tr>\n<td>60s<\/td>\n<td>10<\/td>\n<td>20-60ms<\/td>\n<td>0.9%<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5206\u6790&#xff1a;<\/p>\n<ul>\n<li>\u8f83\u77ed\u7684\u91c7\u96c6\u95f4\u9694&#xff08;\u5982 1s&#xff09;\u80fd\u66f4\u7ec6\u7c92\u5ea6\u91c7\u96c6&#xff0c;\u4f46\u5bf9 CPU \u4e0e I\/O \u5f71\u54cd\u660e\u663e&#xff1b;<\/li>\n<li>10s \u5c5e\u4e8e\u76d1\u63a7\u5e38\u7528\u5e73\u8861\u70b9&#xff1b;<\/li>\n<li>30s \u6216 60s \u9002\u7528\u4e8e\u4f4e\u9891\u4e1a\u52a1\u6307\u6807\u76d1\u63a7\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3>\u4e03\u3001\u9ad8\u7ea7\u914d\u7f6e\u4e0e\u751f\u4ea7\u5efa\u8bae<\/h3>\n<h4>1. \u591a\u8282\u70b9\u91c7\u96c6<\/h4>\n<p>\u5bf9\u4e8e\u89c4\u6a21\u8f83\u5927\u7684\u76d1\u63a7\u573a\u666f&#xff0c;\u5c06 Telegraf \u90e8\u7f72\u5230\u591a\u4e2a\u8282\u70b9&#xff0c;\u901a\u8fc7\u7edf\u4e00\u7684 InfluxDB \u5165\u53e3\u5199\u5165&#xff0c;\u7ed3\u5408\u8d1f\u8f7d\u5747\u8861\u5668\u53ef\u8fdb\u4e00\u6b65\u63d0\u5347\u5199\u5165\u6027\u80fd\u3002<\/p>\n<h4>2. \u5b89\u5168\u4e0e\u8bbf\u95ee\u63a7\u5236<\/h4>\n<ul>\n<li>\u4f7f\u7528 HTTPS\/SSL \u52a0\u5bc6 InfluxDB \u63a5\u53e3&#xff1b;<\/li>\n<li>\u901a\u8fc7\u7ec4\u7ec7\u4e0e Bucket \u5212\u5206\u4e0d\u540c\u4e1a\u52a1\u7a7a\u95f4&#xff1b;<\/li>\n<li>\u4f7f\u7528 Token \u7ec6\u7c92\u5ea6\u63a7\u5236\u8bbf\u95ee\u6743\u9650\u3002<\/li>\n<\/ul>\n<h4>3. \u4fdd\u7559\u7b56\u7565\u4e0e\u538b\u7f29<\/h4>\n<p>\u5728\u521b\u5efa Bucket \u65f6\u5408\u7406\u8bbe\u7f6e\u4fdd\u5b58\u671f\u9650&#xff08;Retention Policy&#xff09;&#xff0c;\u907f\u514d\u65e0\u9650\u79ef\u7d2f\u5927\u91cf\u65e7\u6570\u636e\u3002<\/p>\n<hr \/>\n<h3>\u516b\u3001\u5e38\u89c1\u95ee\u9898\u4e0e\u6392\u9519<\/h3>\n<h4>1. Telegraf \u65e0\u6cd5\u5199\u5165<\/h4>\n<p>\u786e\u8ba4 Token \u662f\u5426\u6b63\u786e&#xff0c;\u5e76\u4e14\u7ec4\u7ec7\/Bucket \u662f\u5426\u5b58\u5728&#xff1b;\u53ef\u901a\u8fc7 CLI \u67e5\u8be2&#xff1a;<\/p>\n<p>influx auth list<br \/>\ninflux bucket list<\/p>\n<h4>2. \u670d\u52a1\u65e0\u6cd5\u542f\u52a8<\/h4>\n<p>\u68c0\u67e5\u65e5\u5fd7&#xff1a;<\/p>\n<p>journalctl -u influxdb -f<br \/>\njournalctl -u telegraf -f<\/p>\n<hr \/>\n<h3>\u4e5d\u3001\u603b\u7ed3<\/h3>\n<p>\u672c\u6587\u4ecb\u7ecd\u4e86\u5728 Ubuntu 22.04 \u4e0a\u90e8\u7f72 InfluxDB 2.x \u65f6\u5e8f\u6570\u636e\u5e93\u4e0e Telegraf \u6570\u636e\u91c7\u96c6\u7684\u5b8c\u6574\u6d41\u7a0b&#xff0c;\u4ece\u7cfb\u7edf\u51c6\u5907\u3001\u5b89\u88c5\u3001\u914d\u7f6e\u5230\u9a8c\u8bc1\u4ee5\u53ca\u6027\u80fd\u8bc4\u4f30\u5747\u8fdb\u884c\u4e86\u8be6\u5c3d\u8bb2\u89e3\u3002\u9002\u7528\u4e8e\u76d1\u63a7\u3001\u65e5\u5fd7\u5206\u6790\u3001IoT \u6570\u636e\u91c7\u96c6\u7b49\u573a\u666f\u3002\u901a\u8fc7\u5408\u7406\u7684\u91c7\u96c6\u9891\u7387\u4e0e\u786c\u4ef6\u8d44\u6e90\u89c4\u5212&#xff0c;\u80fd\u591f\u5728\u751f\u4ea7\u73af\u5883\u7a33\u5b9a\u8fd0\u884c\u5e76\u83b7\u5f97\u9ad8\u8d28\u91cf\u65f6\u5e8f\u6570\u636e\u3002<\/p>\n<p>\u5982\u9700\u8fdb\u4e00\u6b65\u53ef\u89c6\u5316\u5206\u6790&#xff0c;\u53ef\u5728\u6b64\u57fa\u7840\u4e0a\u96c6\u6210 Grafana \u6216\u5176\u4ed6\u67e5\u8be2\u5f15\u64ce\u6784\u5efa\u76d1\u63a7\u5927\u5c4f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u5c06\u4ece\u5b9e\u64cd\u89d2\u5ea6\u51fa\u53d1&#xff0c;A5\u6570\u636e\u5c06\u8bb2\u89e3\u5982\u4f55\u5728 Ubuntu Server 22.04 \u4e0a\u90e8\u7f72 InfluxDB 2.x \u65f6\u5e8f\u6570\u636e\u5e93&#xff0c;\u5e76\u7ed3\u5408 Telegraf \u5b8c\u6210\u6570\u636e\u91c7\u96c6\u6d41\u7a0b\u3002\u5305\u62ec\u786c\u4ef6\u5efa\u8bae\u3001\u7cfb\u7edf\u4f18\u5316\u3001\u8f6f\u4ef6\u5b89\u88c5\u3001\u914d\u7f6e\u7ec6\u8282\u3001\u6570\u636e\u5199\u5165\u4e0e\u9a8c\u8bc1\u3001\u6027\u80fd\u8bc4\u4f30\u8868\u683c&#xff0c;\u9002\u7528\u4e8e\u751f\u4ea7\u73af\u5883\u76d1\u63a7\u4e0e\u65f6\u5e8f\u6570\u636e\u5b58\u50a8\u573a\u666f\u3002 \u672c\u6559\u7a0b\u5185\u5bb9\u57fa\u4e8e\u5b98\u65b9\u6587\u6863\u3001\u793e\u533a\u6700\u4f73\u5b9e\u8df5\u4e0e\u5b9e\u9645\u90e8\u7f72\u7ecf\u9a8c\u6574\u7406&#xff0c;\u529b\u6c42\u6280\u672f\u6df1\u5ea6\u4e0e\u5b9e\u7528\u6027\u5e76\u5b58\u3002 \u4e00\u3001\u90e8\u7f72\u524d\u51c6\u5907\u4e0e\u786c\u4ef6\u914d\u7f6e<br \/>\n1. \u63a8\u8350\u9999\u6e2f\u670d\u52a1\u5668ww<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[103,3832,43],"topic":[],"class_list":["post-71200","post","type-post","status-publish","format-standard","hentry","category-server","tag-ubuntu","tag-3832","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5982\u4f55\u5728\u670d\u52a1\u5668 Ubuntu 22.04 \u4e0a\u90e8\u7f72 InfluxDB 2.x \u65f6\u5e8f\u6570\u636e\u5e93 + Telegraf \u6570\u636e\u91c7\u96c6\u6d41\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/71200.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5982\u4f55\u5728\u670d\u52a1\u5668 Ubuntu 22.04 \u4e0a\u90e8\u7f72 InfluxDB 2.x \u65f6\u5e8f\u6570\u636e\u5e93 + Telegraf \u6570\u636e\u91c7\u96c6\u6d41\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u672c\u6587\u5c06\u4ece\u5b9e\u64cd\u89d2\u5ea6\u51fa\u53d1&#xff0c;A5\u6570\u636e\u5c06\u8bb2\u89e3\u5982\u4f55\u5728 Ubuntu Server 22.04 \u4e0a\u90e8\u7f72 InfluxDB 2.x \u65f6\u5e8f\u6570\u636e\u5e93&#xff0c;\u5e76\u7ed3\u5408 Telegraf \u5b8c\u6210\u6570\u636e\u91c7\u96c6\u6d41\u7a0b\u3002\u5305\u62ec\u786c\u4ef6\u5efa\u8bae\u3001\u7cfb\u7edf\u4f18\u5316\u3001\u8f6f\u4ef6\u5b89\u88c5\u3001\u914d\u7f6e\u7ec6\u8282\u3001\u6570\u636e\u5199\u5165\u4e0e\u9a8c\u8bc1\u3001\u6027\u80fd\u8bc4\u4f30\u8868\u683c&#xff0c;\u9002\u7528\u4e8e\u751f\u4ea7\u73af\u5883\u76d1\u63a7\u4e0e\u65f6\u5e8f\u6570\u636e\u5b58\u50a8\u573a\u666f\u3002 \u672c\u6559\u7a0b\u5185\u5bb9\u57fa\u4e8e\u5b98\u65b9\u6587\u6863\u3001\u793e\u533a\u6700\u4f73\u5b9e\u8df5\u4e0e\u5b9e\u9645\u90e8\u7f72\u7ecf\u9a8c\u6574\u7406&#xff0c;\u529b\u6c42\u6280\u672f\u6df1\u5ea6\u4e0e\u5b9e\u7528\u6027\u5e76\u5b58\u3002 \u4e00\u3001\u90e8\u7f72\u524d\u51c6\u5907\u4e0e\u786c\u4ef6\u914d\u7f6e 1. \u63a8\u8350\u9999\u6e2f\u670d\u52a1\u5668ww\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/71200.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-03T04:05:14+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/71200.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/71200.html\",\"name\":\"\u5982\u4f55\u5728\u670d\u52a1\u5668 Ubuntu 22.04 \u4e0a\u90e8\u7f72 InfluxDB 2.x \u65f6\u5e8f\u6570\u636e\u5e93 + Telegraf \u6570\u636e\u91c7\u96c6\u6d41\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-02-03T04:05:14+00:00\",\"dateModified\":\"2026-02-03T04:05:14+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/71200.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/71200.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/71200.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5982\u4f55\u5728\u670d\u52a1\u5668 Ubuntu 22.04 \u4e0a\u90e8\u7f72 InfluxDB 2.x \u65f6\u5e8f\u6570\u636e\u5e93 + Telegraf \u6570\u636e\u91c7\u96c6\u6d41\u7a0b\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5982\u4f55\u5728\u670d\u52a1\u5668 Ubuntu 22.04 \u4e0a\u90e8\u7f72 InfluxDB 2.x \u65f6\u5e8f\u6570\u636e\u5e93 + Telegraf \u6570\u636e\u91c7\u96c6\u6d41\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/71200.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5982\u4f55\u5728\u670d\u52a1\u5668 Ubuntu 22.04 \u4e0a\u90e8\u7f72 InfluxDB 2.x \u65f6\u5e8f\u6570\u636e\u5e93 + Telegraf \u6570\u636e\u91c7\u96c6\u6d41\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u672c\u6587\u5c06\u4ece\u5b9e\u64cd\u89d2\u5ea6\u51fa\u53d1&#xff0c;A5\u6570\u636e\u5c06\u8bb2\u89e3\u5982\u4f55\u5728 Ubuntu Server 22.04 \u4e0a\u90e8\u7f72 InfluxDB 2.x \u65f6\u5e8f\u6570\u636e\u5e93&#xff0c;\u5e76\u7ed3\u5408 Telegraf \u5b8c\u6210\u6570\u636e\u91c7\u96c6\u6d41\u7a0b\u3002\u5305\u62ec\u786c\u4ef6\u5efa\u8bae\u3001\u7cfb\u7edf\u4f18\u5316\u3001\u8f6f\u4ef6\u5b89\u88c5\u3001\u914d\u7f6e\u7ec6\u8282\u3001\u6570\u636e\u5199\u5165\u4e0e\u9a8c\u8bc1\u3001\u6027\u80fd\u8bc4\u4f30\u8868\u683c&#xff0c;\u9002\u7528\u4e8e\u751f\u4ea7\u73af\u5883\u76d1\u63a7\u4e0e\u65f6\u5e8f\u6570\u636e\u5b58\u50a8\u573a\u666f\u3002 \u672c\u6559\u7a0b\u5185\u5bb9\u57fa\u4e8e\u5b98\u65b9\u6587\u6863\u3001\u793e\u533a\u6700\u4f73\u5b9e\u8df5\u4e0e\u5b9e\u9645\u90e8\u7f72\u7ecf\u9a8c\u6574\u7406&#xff0c;\u529b\u6c42\u6280\u672f\u6df1\u5ea6\u4e0e\u5b9e\u7528\u6027\u5e76\u5b58\u3002 \u4e00\u3001\u90e8\u7f72\u524d\u51c6\u5907\u4e0e\u786c\u4ef6\u914d\u7f6e 1. \u63a8\u8350\u9999\u6e2f\u670d\u52a1\u5668ww","og_url":"https:\/\/www.wsisp.com\/helps\/71200.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-02-03T04:05:14+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/71200.html","url":"https:\/\/www.wsisp.com\/helps\/71200.html","name":"\u5982\u4f55\u5728\u670d\u52a1\u5668 Ubuntu 22.04 \u4e0a\u90e8\u7f72 InfluxDB 2.x \u65f6\u5e8f\u6570\u636e\u5e93 + Telegraf \u6570\u636e\u91c7\u96c6\u6d41\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-02-03T04:05:14+00:00","dateModified":"2026-02-03T04:05:14+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/71200.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/71200.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/71200.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5982\u4f55\u5728\u670d\u52a1\u5668 Ubuntu 22.04 \u4e0a\u90e8\u7f72 InfluxDB 2.x \u65f6\u5e8f\u6570\u636e\u5e93 + Telegraf \u6570\u636e\u91c7\u96c6\u6d41\u7a0b"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/71200","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=71200"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/71200\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=71200"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=71200"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=71200"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=71200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}