Acesso
- Por padrão, o InfluxDB 3 Core escuta em:
http://<SERVER_IP>:8181 - Garantir porta
8181/tcpdeve estar aberta para acesso remoto.
Autenticação e Tokens
- O InfluxDB 3 Core usa autenticação baseada em token.
- Crie o token de administrador (operador):
influxdb3 create token --admin - O token é exibido apenas uma vez.
- Guarde-o com segurança, pois não será possível recuperá-lo depois.
Ficheiros e diretórios importantes
- Arquivo de configuração:
/etc/influxdb3/influxdb3-core.conf - Diretório de dados:
/var/lib/influxdb3/data - Diretório de plugins:
/var/lib/influxdb3/plugins - Serviço Systemd:
influxdb3-core
Gestão de serviços
Parar o serviço:
systemctl stop influxdb3-core
Iniciar o serviço:
systemctl start influxdb3-core
Reiniciar o serviço:
systemctl restart influxdb3-core
Verificar status:
systemctl status influxdb3-core
Ver registos:
journalctl -u influxdb3-core -f
Uso básico (CLI)
Exibir bancos de dados disponíveis:
influxdb3 show databases --token <AUTH_TOKEN>
Use the
I need the complete text to translate. You've only provided "Use the" which appears incomplete. Could you please provide the full English text you'd like translated to Portuguese? write Comando para inserir dados:
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'
Executar consultas SQL no banco de dados:
influxdb3 query
--database <DATABASE_NAME>
--token <AUTH_TOKEN>
"SELECT * FROM home ORDER BY time"