influxDB

/usr/local/Cellar/influxdb/2.0.6/bin/influx

ln -sfv /usr/local/opt/influxdb/*.plist ~/Library/LaunchAgents

配置文件在/etc/influxdb/influxdb.conf ,如果没有就将/usr/local/etc/influxdb.conf 拷一个过去

配置缓存:cache-max-memory-size

#启动服务

launchctl load ~/Library/LaunchAgents/homebrew.mxcl.influxdb.plist

#停止服务

launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.influxdb.plist

#前台启动

influxd -config /usr/local/etc/influxdb.conf

查看influxdb运行配置

influxd config

二、数据库操作

1、创建数据库

create database mydb

2、删除数据库

drop database mydb

3、使用数据库

use mydb

4、插入数据库

insert mt,type=item,sensor=sensor01 value=3,is_delete=0

https://docs.influxdata.com/influxdb/v2.0/install/

启动 influxd

To restart influxdb after an upgrade:
brew services restart influxdb
Or, if you don’t want/need a background service you can just run:
INFLUXD_CONFIG_PATH=”/usr/local/etc/influxdb2/config.yml” /usr/local/opt/influxdb/bin/influxd

http://localhost:8086/onboarding/0