最新influxdb基础(一)——influxdb安装与基本配置(centos,java面试集合问题

最后

针对最近很多人都在面试,我这边也整理了相当多的面试专题资料,也有其他大厂的面经。希望可以帮助到大家。

最新整理面试题
在这里插入图片描述

上述的面试题答案都整理成文档笔记。也还整理了一些面试资料&最新2021收集的一些大厂的面试真题

最新整理电子书

在这里插入图片描述

最新整理大厂面试文档

在这里插入图片描述

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持。

本文已被CODING开源项目:【一线大厂Java面试题解析+核心总结学习笔记+最新讲解视频+实战项目源码】收录

需要这份系统化的资料的朋友,可以点击这里获取

bind-address = “127.0.0.1:8088”

The bind address used by the HTTP service.

bind-address = “:8086”

如需要修改端口,可将注释打开,修改即可。

基本使用

=======================================================================

连接客户端


influxdb是没有密码的,输入influx回车即可进入到influxdb的客户端,输入exit或者quit退出客户端。

在这里插入图片描述

可执行influx -help,查看相关命令参数:

[root@xfyLinux ~]# influx -help

Usage of influx:

-version

Display the version and exit.

-path-prefix ‘url path’

Path that follows the host and port

-host ‘host name’

Host to connect to.

-port ‘port #’

Port to connect to.

-socket ‘unix domain socket’

Unix socket to connect to.

-database ‘database name’

Database to connect to the server.

-password ‘password’

Password to connect to the server. Leaving blank will prompt for password (–password ‘’).

-username ‘username’

Username to connect to the server.

-ssl

Use https for requests.

-unsafeSsl

Set this when connecting to the cluster using https and not use SSL verification.

-execute ‘command’

Execute command and quit.

-type ‘influxql|flux’

Type specifies the query language for executing commands or when invoking the REPL.

-format ‘json|csv|column’

Format specifies the format of the server responses: json, csv, or column.

-precision ‘rfc3339|h|m|s|ms|u|ns’

Precision specifies the format of the timestamp: rfc3339, h, m, s, ms, u or ns.

-consistency ‘any|one|quorum|all’

Set write consistency level: any, one, quorum, or all

-pretty

Turns on pretty print for the json format.

-import

Import a previous database export from file

-pps

How many points per second the import will allow. By default it is zero and will not throttle importing.

-path

Path to file to import

-compressed

Set to true if the import file is compressed

Examples:

Use influx in a non-interactive mode to query the database “metrics” and pretty print json:

$ influx -database ‘metrics’ -execute ‘select * from cpu’ -format ‘json’ -pretty

Connect to a specific database on startup and set database context:

$ influx -database ‘metrics’ -host ‘localhost’ -port ‘8086’

创建用户+设置密码+权限管理


没有密码也可以正常使用,但是为了安全起见,可以为其创建用户和设置密码。输入influx,连上influxdb客户端,然后在客户端里输入:

创建用户并设置密码

create user xxx with password ‘123456’

查看所有用户

show users

修改密码

set password for xxx=‘1234’

删除用户

drop user xxx

查询用户的权限

show grants for

授权

GRANT ALL PRIVILEGES TO

GRANT [READ,WRITE,ALL] ON <database_name> TO

回收权限

REVOKE ALL PRIVILEGES FROM

REVOKE [READ,WRITE,ALL] ON <database_name> FROM

创建用户+密码+授权(一条语句搞定)

create user xxx with password ‘123456’ with all privileges

创建用户+设置密码+权限管理之后,还需要修改配置/etc/influxdb/influxdb.conf,开启权限验证:

vim /etc/influxdb/influxdb.conf

开启权限验证

auth-enabled = true

重启influxdb并连接测试:

重启

service influxdb restart

输入用户名+密码连接

influx -username xxx -password 123456

Java核心架构进阶知识点

面试成功其实都是必然发生的事情,因为在此之前我做足了充分的准备工作,不单单是纯粹的刷题,更多的还会去刷一些Java核心架构进阶知识点,比如:JVM、高并发、多线程、缓存、Spring相关、分布式、微服务、RPC、网络、设计模式、MQ、Redis、MySQL、设计模式、负载均衡、算法、数据结构、kafka、ZK、集群等。而这些也全被整理浓缩到了一份pdf——《Java核心架构进阶知识点整理》,全部都是精华中的精华,本着共赢的心态,好东西自然也是要分享的

image

image

image

内容颇多,篇幅却有限,这就不在过多的介绍了,大家可根据以上截图自行脑补

本文已被CODING开源项目:【一线大厂Java面试题解析+核心总结学习笔记+最新讲解视频+实战项目源码】收录

需要这份系统化的资料的朋友,可以点击这里获取

GZ8Sl-1715627730790)]

内容颇多,篇幅却有限,这就不在过多的介绍了,大家可根据以上截图自行脑补

本文已被CODING开源项目:【一线大厂Java面试题解析+核心总结学习笔记+最新讲解视频+实战项目源码】收录

需要这份系统化的资料的朋友,可以点击这里获取

  • 26
    点赞
  • 25
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值