{"id":12330,"date":"2025-04-18T19:27:10","date_gmt":"2025-04-18T11:27:10","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/12330.html"},"modified":"2025-04-18T19:27:10","modified_gmt":"2025-04-18T11:27:10","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8-ubuntu-22-04-%e4%b8%8a%e5%ae%89%e8%a3%85-influxdb-v2-%e6%9c%8d%e5%8a%a1%e5%99%a8%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/12330.html","title":{"rendered":"\u5982\u4f55\u5728 Ubuntu 22.04 \u4e0a\u5b89\u88c5 InfluxDB v2 \u670d\u52a1\u5668\u6559\u7a0b"},"content":{"rendered":"<h3>\u7b80\u4ecb<\/h3>\n<p>\u672c\u6559\u7a0b\u5c06\u5411\u4f60\u4ecb\u7ecd\u5982\u4f55\u5728 Ubuntu 22.04 \u4e0a\u5b89\u88c5\u548c\u914d\u7f6e InfluxDB v2\u3002InfluxDB v2 \u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u5f00\u6e90\u65f6\u5e8f\u6570\u636e\u5e93&#xff0c;\u4e13\u4e3a\u9ad8\u6027\u80fd\u6570\u636e\u5b58\u50a8\u3001\u68c0\u7d22\u548c\u5206\u6790\u800c\u8bbe\u8ba1\u3002\u5b83\u975e\u5e38\u9002\u5408\u5904\u7406\u5927\u91cf\u5e26\u6709\u65f6\u95f4\u6233\u7684\u6570\u636e&#xff0c;\u4f7f\u5176\u6210\u4e3a\u76d1\u63a7\u3001\u53ef\u89c2\u6d4b\u6027\u548c\u7269\u8054\u7f51\u6570\u636e\u7ba1\u7406\u7b49\u7528\u4f8b\u7684\u7406\u60f3\u9009\u62e9\u3002InfluxDB v2 \u7684\u4e3b\u8981\u589e\u5f3a\u529f\u80fd\u5305\u62ec\u4e00\u79cd\u540d\u4e3a Flux \u7684\u65b0\u67e5\u8be2\u8bed\u8a00\u3001\u66f4\u7cbe\u7b80\u9ad8\u6548\u7684\u6570\u636e\u6a21\u578b\u4ee5\u53ca\u7528\u4e8e\u5199\u5165\u548c\u67e5\u8be2\u6570\u636e\u7684\u7edf\u4e00 API\u3002<\/p>\n<p>InfluxDB v2 \u7684\u4e00\u4e2a\u91cd\u5927\u53d8\u5316\u662f\u5f15\u5165\u4e86\u96c6\u6210\u7684 InfluxDB 2.0 \u5e73\u53f0&#xff0c;\u8be5\u5e73\u53f0\u5c06\u6838\u5fc3\u6570\u636e\u5e93\u4e0e InfluxDB UI\u3001Chronograf\u3001Telegraf \u548c Kapacitor \u7b49\u5de5\u5177\u96c6\u6210\u5230\u4e00\u4e2a\u7edf\u4e00\u7684\u8f6f\u4ef6\u5305\u4e2d\u3002\u8fd9\u79cd\u96c6\u6210\u5141\u8bb8\u7528\u6237\u66f4\u6709\u6548\u5730\u6536\u96c6\u3001\u53ef\u89c6\u5316\u548c\u5206\u6790\u6570\u636e\u3002<\/p>\n<p>\u57fa\u4e8e Web \u7684\u7528\u6237\u754c\u9762\u7b80\u5316\u4e86\u6570\u636e\u5e93\u7ba1\u7406&#xff0c;\u5e76\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u6570\u636e\u53ef\u89c6\u5316\u529f\u80fd\u3002\u4f7f\u7528 Flux \u4f5c\u4e3a\u67e5\u8be2\u8bed\u8a00\u589e\u5f3a\u4e86\u6570\u636e\u5206\u6790\u7684\u7075\u6d3b\u6027&#xff0c;\u4e0e\u4f20\u7edf\u7684 InfluxQL \u76f8\u6bd4&#xff0c;\u63d0\u4f9b\u4e86\u66f4\u9ad8\u7ea7\u7684\u529f\u80fd\u3002<\/p>\n<p>\u672c\u6559\u7a0b\u7684\u76ee\u6807\u662f\u624b\u628a\u624b\u6559\u4f60\u5982\u4f55\u5728 Linux \u670d\u52a1\u5668\u4e0a\u5b89\u88c5 InfluxDB v2&#xff0c;\u5e76\u8fdb\u884c\u57fa\u672c\u7684\u914d\u7f6e&#xff0c;\u4ee5\u4fbf\u4f60\u53ef\u4ee5\u5f00\u59cb\u4f7f\u7528\u5b83\u3002<\/p>\n<h3>\u5b89\u88c5\u548c\u914d\u7f6e\u6b65\u9aa4<\/h3>\n<h4>\u7b2c\u4e00\u6b65&#xff1a;\u66f4\u65b0\u7cfb\u7edf<\/h4>\n<p>\u9996\u5148&#xff0c;\u66f4\u65b0\u4f60\u7684\u7cfb\u7edf\u4ee5\u786e\u4fdd\u6240\u6709\u8f6f\u4ef6\u5305\u90fd\u662f\u6700\u65b0\u7684\u3002<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> update<\/p>\n<h4>\u7b2c\u4e8c\u6b65&#xff1a;\u5b89\u88c5 InfluxDB v2<\/h4>\n<p>InfluxDB \u5728\u9ed8\u8ba4\u7684 Ubuntu \u5b58\u50a8\u5e93\u4e2d\u4e0d\u53ef\u7528&#xff0c;\u56e0\u6b64\u4f60\u9700\u8981\u6dfb\u52a0 InfluxData \u5b58\u50a8\u5e93\u3002\u6709\u5173\u66f4\u591a\u4fe1\u606f&#xff0c;\u8bf7\u8bbf\u95ee \u5b98\u65b9\u4e0b\u8f7d\u9875\u9762\u3002<\/p>\n<p>\u521b\u5efa\u5b58\u50a8\u5e93\u6587\u4ef6&#xff1a;<\/p>\n<p><span class=\"token comment\"># influxdata-archive_compat.key GPG fingerprint:<\/span><br \/>\n<span class=\"token comment\">#     9D53 9D90 D332 8DC7 D6C8 D3B9 D8FF 8E1F 7DF8 B07E<\/span><br \/>\n<span class=\"token function\">wget<\/span> <span class=\"token parameter variable\">-q<\/span> https:\/\/repos.influxdata.com\/influxdata-archive_compat.key<br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#039;393e8779c89ac8d958f81f942f9ad7fb82a25e133faddaf92e15b16e6ac9ce4c influxdata-archive_compat.key&#039;<\/span> <span class=\"token operator\">|<\/span> sha256sum <span class=\"token parameter variable\">-c<\/span> <span class=\"token operator\">&amp;&amp;<\/span> <span class=\"token function\">cat<\/span> influxdata-archive_compat.key <span class=\"token operator\">|<\/span> gpg <span class=\"token parameter variable\">&#8211;dearmor<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">sudo<\/span> <span class=\"token function\">tee<\/span> \/etc\/apt\/trusted.gpg.d\/influxdata-archive_compat.gpg <span class=\"token operator\">&gt;<\/span> \/dev\/null<br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#039;deb [signed-by&#061;\/etc\/apt\/trusted.gpg.d\/influxdata-archive_compat.gpg] https:\/\/repos.influxdata.com\/debian stable main&#039;<\/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<p>\u4fdd\u5b58\u5e76\u9000\u51fa\u6587\u4ef6\u3002<\/p>\n<p>\u4f7f\u7528 apt \u5305\u7ba1\u7406\u5668\u5b89\u88c5 InfluxDB\u3002<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt-get<\/span> update <span class=\"token operator\">&amp;&amp;<\/span> <span class=\"token function\">sudo<\/span> <span class=\"token function\">apt-get<\/span> <span class=\"token function\">install<\/span> influxdb2 <span class=\"token parameter variable\">-y<\/span><\/p>\n<p>\u5b89\u88c5 InfluxDB \u540e&#xff0c;\u542f\u52a8\u670d\u52a1\u5e76\u4f7f\u5176\u5728\u542f\u52a8\u65f6\u542f\u52a8\u3002<\/p>\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>\u9a8c\u8bc1 InfluxDB \u662f\u5426\u6b63\u5728\u8fd0\u884c&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> systemctl status influxdb<\/p>\n<h4>\u7b2c\u4e09\u6b65&#xff1a;\u5b89\u88c5 InfluxDB CLI<\/h4>\n<p>\u63a5\u4e0b\u6765&#xff0c;\u6211\u4eec\u9700\u8981\u4e0b\u8f7d InfluxDB CLI\u3002\u8bf7\u8bbf\u95ee \u5b98\u65b9\u7f51\u7ad9\u83b7\u53d6\u6700\u65b0\u7248\u672c\u3002\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u4e0b\u8f7d InfluxDB CLI&#xff1a;<\/p>\n<p><span class=\"token function\">wget<\/span> https:\/\/download.influxdata.com\/influxdb\/releases\/influxdb2-client-2.7.5-linux-amd64.tar.gz<\/p>\n<p>\u5b89\u88c5 CLI \u5de5\u5177<\/p>\n<p><span class=\"token function\">tar<\/span> xvf influxdb2-client-2.7.5-linux-amd64.tar.gz<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">cp<\/span> influx \/usr\/local\/bin\/<\/p>\n<p>\u9a8c\u8bc1\u5b89\u88c5<\/p>\n<p>influx version<\/p>\n<p>\u8f93\u51fa&#xff1a;<\/p>\n<p>Influx CLI dev (git: a79a2a1b825867421d320428538f76a4c90aa34c) build_date: 2024-04-16T14:34:32Z<\/p>\n<h4>\u7b2c\u56db\u6b65&#xff1a;\u8bbe\u7f6e InfluxDB 2<\/h4>\n<p>InfluxDB v2 \u5e26\u6709\u8bbe\u7f6e\u5411\u5bfc&#xff0c;\u53ef\u5e2e\u52a9\u4f60\u5165\u95e8\u3002<\/p>\n<p>\u8fd0\u884c\u8bbe\u7f6e\u547d\u4ee4&#xff1a;<\/p>\n<p>influx setup<\/p>\n<p>\u6309\u7167\u63d0\u793a\u8bbe\u7f6e\u4f60\u7684\u521d\u59cb\u7528\u6237\u3001\u7ec4\u7ec7\u548c\u5b58\u50a8\u6876\u3002\u4ee5\u4e0b\u662f\u63d0\u793a\u548c\u54cd\u5e94\u7684\u793a\u4f8b&#xff1a;<\/p>\n<p>&gt; Welcome to InfluxDB 2.0!<br \/>\n? Please type your primary username admin<br \/>\n? Please type your password *********<br \/>\n? Please type your password again ********<br \/>\n? Please type your primary organization name my_org<br \/>\n? Please type your primary bucket name my_bucket<br \/>\n? Please type your retention period in hours, or 0 for infinite 1<br \/>\n? Setup with these parameters?<br \/>\n  Username:         admin<br \/>\n  Organization:      my_org<br \/>\n  Bucket:          my_bucket<br \/>\n  Retention Period:   1h0m0s<br \/>\n  Yes<br \/>\nUser    Organization    Bucket<br \/>\nadmin   my_org          my_bucket<\/p>\n<p>InfluxDB \u8bbe\u7f6e\u5df2\u5b8c\u6210\u3002<\/p>\n<h4>\u7b2c\u4e94\u6b65&#xff1a;\u914d\u7f6e\u9632\u706b\u5899\u548c SELinux<\/h4>\n<p>\u6211\u4eec\u9700\u8981\u5728\u9632\u706b\u5899\u4e2d\u6dfb\u52a0 HTTP \u548c HTTPS \u7aef\u53e3\u3002\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4&#xff1a;<\/p>\n<p>ufw allow <span class=\"token number\">80<\/span>\/tcp<br \/>\nufw allow <span class=\"token number\">443<\/span>\/tcp<br \/>\nufw reload<\/p>\n<p>\u63a5\u4e0b\u6765&#xff0c;\u5982\u679c\u4f60\u542f\u7528\u4e86 SELinux&#xff0c;\u8bf7\u6309\u7167\u6b64\u6b65\u9aa4\u64cd\u4f5c\u3002\u8981\u5141\u8bb8 Nginx \u5728 SELinux \u4e0b\u6b63\u5e38\u5de5\u4f5c&#xff0c;\u4f60\u9700\u8981\u8bbe\u7f6e\u9002\u5f53\u7684 SELinux \u7b56\u7565\u3002<\/p>\n<p><span class=\"token function\">sudo<\/span> semanage fcontext <span class=\"token parameter variable\">-a<\/span> <span class=\"token parameter variable\">-t<\/span> httpd_sys_content_t<\/p>\n<h4>\u7b2c\u516d\u6b65&#xff1a;\u5b89\u88c5\u548c\u914d\u7f6e Nginx \u7528\u4e8e InfluxDB v2<\/h4>\n<p>\u9996\u5148&#xff0c;\u5728\u4f60\u7684 Ubuntu 22.04 \u670d\u52a1\u5668\u4e0a\u5b89\u88c5 Nginx\u3002<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> nginx <span class=\"token parameter variable\">-y<\/span><\/p>\n<p>\u542f\u52a8\u5e76\u542f\u7528 Nginx&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> systemctl start nginx<br \/>\n<span class=\"token function\">sudo<\/span> systemctl <span class=\"token builtin class-name\">enable<\/span> nginx<\/p>\n<p>\u9a8c\u8bc1 Nginx \u662f\u5426\u6b63\u5728\u8fd0\u884c&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> systemctl status nginx<\/p>\n<p>\u63a5\u4e0b\u6765&#xff0c;\u6211\u4eec\u9700\u8981\u914d\u7f6e Nginx \u4ee5\u5c06\u8bf7\u6c42\u4ee3\u7406\u5230 InfluxDB\u3002<\/p>\n<p>\u4e3a InfluxDB \u521b\u5efa\u4e00\u4e2a\u65b0\u7684 Nginx \u914d\u7f6e\u6587\u4ef6&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/etc\/nginx\/sites-available\/influxdb<\/p>\n<p>\u6dfb\u52a0\u4ee5\u4e0b\u914d\u7f6e&#xff1a;<\/p>\n<p>server {<br \/>\n    listen 80;<br \/>\n    server_name your_domain;<\/p>\n<p>    location \/ {<br \/>\n        proxy_pass http:\/\/localhost:8086;<br \/>\n        proxy_set_header Host $host;<br \/>\n        proxy_set_header X-Real-IP $remote_addr;<br \/>\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br \/>\n        proxy_set_header X-Forwarded-Proto $scheme;<br \/>\n    }<br \/>\n}<\/p>\n<p>\u6ce8\u610f&#xff1a; \u5c06 your_domain \u66ff\u6362\u4e3a\u4f60\u7684\u670d\u52a1\u5668\u7684\u57df\u540d\u3002<\/p>\n<p>\u4fdd\u5b58\u5e76\u9000\u51fa\u6587\u4ef6\u3002<\/p>\n<p>\u542f\u7528\u914d\u7f6e\u5e76\u91cd\u65b0\u542f\u52a8 Nginx&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">ln<\/span> <span class=\"token parameter variable\">-s<\/span> \/etc\/nginx\/sites-available\/influxdb \/etc\/nginx\/sites-enabled\/<\/p>\n<p>\u6d4b\u8bd5 Nginx \u914d\u7f6e&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> nginx <span class=\"token parameter variable\">-t<\/span><\/p>\n<p>\u91cd\u65b0\u52a0\u8f7d Nginx \u4ee5\u5e94\u7528\u65b0\u914d\u7f6e&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> systemctl reload nginx<\/p>\n<h4>\u7b2c\u4e03\u6b65&#xff1a;\u5b89\u88c5 Certbot \u7528\u4e8e SSL<\/h4>\n<p>\u6211\u4eec\u5c06\u4f7f\u7528 Certbot \u4ece Let\u2019s Encrypt \u83b7\u53d6\u5e76\u5b89\u88c5 SSL \u8bc1\u4e66\u3002<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> certbot python3-certbot-nginx <span class=\"token parameter variable\">-y<\/span><\/p>\n<p>\u4f7f\u7528 Certbot \u83b7\u53d6\u5e76\u5b89\u88c5 SSL \u8bc1\u4e66\u3002<\/p>\n<p>\u8fd0\u884c Certbot&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> certbot <span class=\"token parameter variable\">&#8211;nginx<\/span> <span class=\"token parameter variable\">-d<\/span> your_domain<\/p>\n<p>\u6309\u7167\u63d0\u793a\u5b8c\u6210\u8bbe\u7f6e\u3002Certbot \u5c06\u81ea\u52a8\u914d\u7f6e Nginx \u4ee5\u4f7f\u7528\u83b7\u5f97\u7684 SSL \u8bc1\u4e66\u3002<\/p>\n<p>Let\u2019s Encrypt \u8bc1\u4e66\u6709\u6548\u671f\u4e3a 90 \u5929&#xff0c;\u56e0\u6b64\u5fc5\u987b\u8bbe\u7f6e\u81ea\u52a8\u7eed\u8ba2\u3002<\/p>\n<p>\u521b\u5efa cron \u4f5c\u4e1a\u4ee5\u7eed\u8ba2\u8bc1\u4e66&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">crontab<\/span> <span class=\"token parameter variable\">-e<\/span><\/p>\n<p>\u5c06\u4ee5\u4e0b\u884c\u6dfb\u52a0\u5230 crontab \u6587\u4ef6\u4e2d&#xff0c;\u4ee5\u6bcf\u5929\u4e24\u6b21\u8fd0\u884c\u7eed\u8ba2&#xff1a;<\/p>\n<p>0 0,12 * * * \/usr\/bin\/certbot renew &#8211;quiet<\/p>\n<p>\u6b64 cron \u4f5c\u4e1a\u5c06\u6bcf\u5929\u4e24\u6b21\u68c0\u67e5\u8bc1\u4e66\u7eed\u8ba2&#xff0c;\u5e76\u5728\u9700\u8981\u65f6\u7eed\u8ba2\u5b83\u4eec\u3002<\/p>\n<h4>\u7b2c\u516b\u6b65&#xff1a;\u9a8c\u8bc1\u8bbe\u7f6e<\/h4>\n<p>\u4f60\u53ef\u4ee5\u901a\u8fc7\u8bbf\u95ee InfluxDB Web \u754c\u9762\u6765\u9a8c\u8bc1\u4f60\u7684\u8bbe\u7f6e\u3002\u6253\u5f00\u4f60\u7684\u6d4f\u89c8\u5668\u5e76\u5bfc\u822a\u5230 https:\/\/your_domain\u3002\u4f7f\u7528\u4f60\u5728\u8bbe\u7f6e\u671f\u95f4\u521b\u5efa\u7684\u7528\u6237\u540d\u548c\u5bc6\u7801\u767b\u5f55\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418112708-6802370cd9f43.png\" alt=\"\" \/><\/p>\n<h3>\u7ed3\u5c3e<\/h3>\n<p>\u4f60\u5df2\u6210\u529f\u4e86\u89e3\u5982\u4f55\u5728 Ubuntu 22.04 \u4e0a\u5b89\u88c5\u548c\u914d\u7f6e InfluxDB v2 \u65f6\u5e8f\u6570\u636e\u3002\u4f60\u73b0\u5728\u53ef\u4ee5\u5f00\u59cb\u4f7f\u7528 InfluxDB \u5b58\u50a8\u548c\u67e5\u8be2\u65f6\u5e8f\u6570\u636e\u3002\u6709\u5173\u66f4\u9ad8\u7ea7\u7684\u914d\u7f6e\u548c\u4f7f\u7528\u65b9\u6cd5&#xff0c;\u8bf7\u53c2\u9605 \u5b98\u65b9 InfluxDB \u6587\u6863\u3002<\/p>\n<p>\u5982\u679c\u4f60\u6709\u4efb\u4f55\u95ee\u9898\u6216\u9700\u8981\u8fdb\u4e00\u6b65\u7684\u5e2e\u52a9&#xff0c;\u8bf7\u968f\u65f6\u8054\u7cfb\u6211\u3002<\/p>\n<hr \/>\n<p>\u6211\u7684\u535a\u5ba2&#xff1a;https:\/\/blog.ivwv.site<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.4k\u6b21\uff0c\u70b9\u8d5e34\u6b21\uff0c\u6536\u85cf26\u6b21\u3002\u672c\u6559\u7a0b\u5c06\u5411\u4f60\u4ecb\u7ecd\u5982\u4f55\u5728 Ubuntu 22.04 \u4e0a\u5b89\u88c5\u548c\u914d\u7f6e InfluxDB v2\u3002InfluxDB v2 \u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u5f00\u6e90\u65f6\u5e8f\u6570\u636e\u5e93\uff0c\u4e13\u4e3a\u9ad8\u6027\u80fd\u6570\u636e\u5b58\u50a8\u3001\u68c0\u7d22\u548c\u5206\u6790\u800c\u8bbe\u8ba1\u3002\u5b83\u975e\u5e38\u9002\u5408\u5904\u7406\u5927\u91cf\u5e26\u6709\u65f6\u95f4\u6233\u7684\u6570\u636e\uff0c\u4f7f\u5176\u6210\u4e3a\u76d1\u63a7\u3001\u53ef\u89c2\u6d4b\u6027\u548c\u7269\u8054\u7f51\u6570\u636e\u7ba1\u7406\u7b49\u7528\u4f8b\u7684\u7406\u60f3\u9009\u62e9\u3002InfluxDB v2 \u7684\u4e3b\u8981\u589e\u5f3a\u529f\u80fd\u5305\u62ec\u4e00\u79cd\u540d\u4e3a Flux \u7684\u65b0\u67e5\u8be2\u8bed\u8a00\u3001\u66f4\u7cbe\u7b80\u9ad8\u6548\u7684\u6570\u636e\u6a21\u578b\u4ee5\u53ca\u7528\u4e8e\u5199\u5165\u548c\u67e5\u8be2\u6570\u636e\u7684\u7edf\u4e00 API\u3002_ubuntu\u5b89\u88c5influxdb<\/p>\n","protected":false},"author":2,"featured_media":12329,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[669,58,117,103,529,530,43,44],"topic":[],"class_list":["post-12330","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-db","tag-linux","tag-nginx","tag-ubuntu","tag-529","tag-530","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5982\u4f55\u5728 Ubuntu 22.04 \u4e0a\u5b89\u88c5 InfluxDB v2 \u670d\u52a1\u5668\u6559\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\/12330.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 Ubuntu 22.04 \u4e0a\u5b89\u88c5 InfluxDB v2 \u670d\u52a1\u5668\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.4k\u6b21\uff0c\u70b9\u8d5e34\u6b21\uff0c\u6536\u85cf26\u6b21\u3002\u672c\u6559\u7a0b\u5c06\u5411\u4f60\u4ecb\u7ecd\u5982\u4f55\u5728 Ubuntu 22.04 \u4e0a\u5b89\u88c5\u548c\u914d\u7f6e InfluxDB v2\u3002InfluxDB v2 \u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u5f00\u6e90\u65f6\u5e8f\u6570\u636e\u5e93\uff0c\u4e13\u4e3a\u9ad8\u6027\u80fd\u6570\u636e\u5b58\u50a8\u3001\u68c0\u7d22\u548c\u5206\u6790\u800c\u8bbe\u8ba1\u3002\u5b83\u975e\u5e38\u9002\u5408\u5904\u7406\u5927\u91cf\u5e26\u6709\u65f6\u95f4\u6233\u7684\u6570\u636e\uff0c\u4f7f\u5176\u6210\u4e3a\u76d1\u63a7\u3001\u53ef\u89c2\u6d4b\u6027\u548c\u7269\u8054\u7f51\u6570\u636e\u7ba1\u7406\u7b49\u7528\u4f8b\u7684\u7406\u60f3\u9009\u62e9\u3002InfluxDB v2 \u7684\u4e3b\u8981\u589e\u5f3a\u529f\u80fd\u5305\u62ec\u4e00\u79cd\u540d\u4e3a Flux \u7684\u65b0\u67e5\u8be2\u8bed\u8a00\u3001\u66f4\u7cbe\u7b80\u9ad8\u6548\u7684\u6570\u636e\u6a21\u578b\u4ee5\u53ca\u7528\u4e8e\u5199\u5165\u548c\u67e5\u8be2\u6570\u636e\u7684\u7edf\u4e00 API\u3002_ubuntu\u5b89\u88c5influxdb\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/12330.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T11:27:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418112708-6802370cd9f43.png\" \/>\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=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/12330.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/12330.html\",\"name\":\"\u5982\u4f55\u5728 Ubuntu 22.04 \u4e0a\u5b89\u88c5 InfluxDB v2 \u670d\u52a1\u5668\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T11:27:10+00:00\",\"dateModified\":\"2025-04-18T11:27:10+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/12330.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/12330.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/12330.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5982\u4f55\u5728 Ubuntu 22.04 \u4e0a\u5b89\u88c5 InfluxDB v2 \u670d\u52a1\u5668\u6559\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 Ubuntu 22.04 \u4e0a\u5b89\u88c5 InfluxDB v2 \u670d\u52a1\u5668\u6559\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\/12330.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5982\u4f55\u5728 Ubuntu 22.04 \u4e0a\u5b89\u88c5 InfluxDB v2 \u670d\u52a1\u5668\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.4k\u6b21\uff0c\u70b9\u8d5e34\u6b21\uff0c\u6536\u85cf26\u6b21\u3002\u672c\u6559\u7a0b\u5c06\u5411\u4f60\u4ecb\u7ecd\u5982\u4f55\u5728 Ubuntu 22.04 \u4e0a\u5b89\u88c5\u548c\u914d\u7f6e InfluxDB v2\u3002InfluxDB v2 \u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u5f00\u6e90\u65f6\u5e8f\u6570\u636e\u5e93\uff0c\u4e13\u4e3a\u9ad8\u6027\u80fd\u6570\u636e\u5b58\u50a8\u3001\u68c0\u7d22\u548c\u5206\u6790\u800c\u8bbe\u8ba1\u3002\u5b83\u975e\u5e38\u9002\u5408\u5904\u7406\u5927\u91cf\u5e26\u6709\u65f6\u95f4\u6233\u7684\u6570\u636e\uff0c\u4f7f\u5176\u6210\u4e3a\u76d1\u63a7\u3001\u53ef\u89c2\u6d4b\u6027\u548c\u7269\u8054\u7f51\u6570\u636e\u7ba1\u7406\u7b49\u7528\u4f8b\u7684\u7406\u60f3\u9009\u62e9\u3002InfluxDB v2 \u7684\u4e3b\u8981\u589e\u5f3a\u529f\u80fd\u5305\u62ec\u4e00\u79cd\u540d\u4e3a Flux \u7684\u65b0\u67e5\u8be2\u8bed\u8a00\u3001\u66f4\u7cbe\u7b80\u9ad8\u6548\u7684\u6570\u636e\u6a21\u578b\u4ee5\u53ca\u7528\u4e8e\u5199\u5165\u548c\u67e5\u8be2\u6570\u636e\u7684\u7edf\u4e00 API\u3002_ubuntu\u5b89\u88c5influxdb","og_url":"https:\/\/www.wsisp.com\/helps\/12330.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T11:27:10+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418112708-6802370cd9f43.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/12330.html","url":"https:\/\/www.wsisp.com\/helps\/12330.html","name":"\u5982\u4f55\u5728 Ubuntu 22.04 \u4e0a\u5b89\u88c5 InfluxDB v2 \u670d\u52a1\u5668\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T11:27:10+00:00","dateModified":"2025-04-18T11:27:10+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/12330.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/12330.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/12330.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5982\u4f55\u5728 Ubuntu 22.04 \u4e0a\u5b89\u88c5 InfluxDB v2 \u670d\u52a1\u5668\u6559\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\/12330","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=12330"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/12330\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/12329"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=12330"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=12330"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=12330"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=12330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}