最后
针对最近很多人都在面试,我这边也整理了相当多的面试专题资料,也有其他大厂的面经。希望可以帮助到大家。
最新整理面试题
上述的面试题答案都整理成文档笔记。也还整理了一些面试资料&最新2021收集的一些大厂的面试真题
最新整理电子书
最新整理大厂面试文档
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持。
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核心架构进阶知识点整理》,全部都是精华中的精华,本着共赢的心态,好东西自然也是要分享的
内容颇多,篇幅却有限,这就不在过多的介绍了,大家可根据以上截图自行脑补
GZ8Sl-1715627730790)]
内容颇多,篇幅却有限,这就不在过多的介绍了,大家可根据以上截图自行脑补