工信部网站备案信息怎么查询系统,电脑做网站怎么解析域名,安徽省建设厅官方网站黄世山,wordpress导入文章Linux安装Influxdb 1、安装步骤1.1、安装Influxdb步骤1.2、Influxdb默认安装路径1.3、命令行操作Influxdb#xff0c;建库#xff0c;建用户1.3.1 进入influxdb命令行1.3.2 创建用户1.3.2 库查询和创建 1、安装步骤
1.1、安装Influxdb步骤
yum install -y wget
#下载安装包… Linux安装Influxdb 1、安装步骤1.1、安装Influxdb步骤1.2、Influxdb默认安装路径1.3、命令行操作Influxdb建库建用户1.3.1 进入influxdb命令行1.3.2 创建用户1.3.2 库查询和创建 1、安装步骤
1.1、安装Influxdb步骤
yum install -y wget
#下载安装包
wget https://dl.influxdata.com/influxdb/releases/influxdb-1.8.4.x86_64.rpm
#安装
sudo yum localinstall influxdb-1.8.4.x86_64.rpm
#查看influx版本信息
influx -version#启动influx
service influxdb restart1.2、Influxdb默认安装路径
#默认的配置文件
/etc/influxdb/influxdb.conf
#日志文件
/var/log/influxdb/influxd.log
#数据文件
/var/lib/influxdb/data
#初始化脚本文件夹
/usr/lib/influxdb/scripts1.3、命令行操作Influxdb建库建用户
1.3.1 进入influxdb命令行
加-precision是为了设置时间格式如果没设置的话显示的时间类型字段为时间戳。
influx -precision rfc3339
或
influx1.3.2 创建用户
#查看用户
show users
#创建admin用户
create user root with password root with all privileges
#创建普通用户
create user influx with password influx
#修改用户密码
set password for root root
#指定用户名密码登录
influx -username root -password root
#删除用户
drop user root 1.3.2 库查询和创建
#查询几个数据库
show databases;
#创建库
create database dbname;
#进入到某个数据库
use dbname;