อินฟลักซ์ดีบี ​​3 คอร์

ฐานข้อมูลที่สร้างขึ้นเพื่อรวบรวม ประมวลผล แปลง และจัดเก็บข้อมูลเหตุการณ์และข้อมูลอนุกรมเวลา

เข้าถึง

  • By default, InfluxDB 3 Core listens on: http://<SERVER_IP>:8181
  • Ensure port 8181/tcp is open if accessing remotely.

Authentication & Tokens

  • InfluxDB 3 Core uses token-based authentication.
  • Create the admin (operator) token: influxdb3 create token --admin
  • The token is shown only once.
  • Store it securely — it cannot be retrieved later.

ไฟล์และไดเร็กทอรีที่สำคัญ

  • ไฟล์การกำหนดค่า: /etc/influxdb3/influxdb3-core.conf
  • ไดเร็กทอรีข้อมูล: /var/lib/influxdb3/data
  • Plugin directory: /var/lib/influxdb3/plugins
  • บริการ Systemd: influxdb3-core

การจัดการบริการ

หยุดการให้บริการ:

systemctl stop influxdb3-core

Start the service:

systemctl start influxdb3-core

เริ่มบริการใหม่อีกครั้ง:

systemctl restart influxdb3-core

ตรวจสอบสถานะ:

systemctl status influxdb3-core

ดูบันทึก:

journalctl -u influxdb3-core -f

Basic Usage (CLI)

Show available databases:

influxdb3 show databases --token <AUTH_TOKEN>

Use the write command to insert data:

influxdb3 write 
  --database <DATABASE_NAME> 
  --token <AUTH_TOKEN> 
  --precision s 
'home,room=Living Room temp=21.1,hum=35.9,co=0i 1641024000
home,room=Kitchen temp=21.0,hum=35.9,co=0i 1641024000
home,room=Living Room temp=21.4,hum=35.9,co=0i 1641027600
home,room=Kitchen temp=23.0,hum=36.2,co=0i 1641027600
home,room=Living Room temp=21.8,hum=36.0,co=0i 1641031200
home,room=Kitchen temp=22.7,hum=36.1,co=0i 1641031200'

Run SQL queries against your database:

influxdb3 query 
  --database <DATABASE_NAME> 
  --token <AUTH_TOKEN> 
  "SELECT * FROM home ORDER BY time"

รายละเอียดการสมัคร