命令为加粗:
[root@192 /]# docker pull influxdb
Using default tag: latest
latest: Pulling from library/influxdb
d960726af2be: Pull complete
e8d62473a22d: Pull complete
8962bc0fad55: Pull complete
3b26e21cfb07: Pull complete
f77b907603e3: Pull complete
2b137bdfa0c5: Pull complete
7e6fa243fc79: Pull complete
3e0cae572c4f: Pull complete
7968db8c13ce: Pull complete
Digest: sha256:6b35144cb57f3860d8cf083d5d9b93d01a1304d041fbb352dc76d31d3ffff780
Status: Downloaded newer image for influxdb:latest
docker.io/library/influxdb:latest
[root@192 /]# docker run -d --name=influxdb --network grafana -p 8086:8086 -v ${PWD}/influxdb/:/var/lib/influxdb/ influxdb:latest
之前是:docker run -d -p 8083:8083 -p 8086:8086 --name=jmeterdb influxdb
1a6c773353b1ec20f9b4c3dde84b0675844e9eb51a918980f1e8351b93c8ea2d
[root@192 /]# docker exec -it influxdb bash
之前是:docker exec -it jmeterdb /bin/bash
root@1a6c773353b1:/# influx
Influx Client
Usage:
influx [command]
Available Commands:
apply Apply a template to manage resources
auth Authorization management commands
backup Backup database
bucket Bucket management commands
completion Generates completion scripts
config Config management commands
dashboards List Dashboard(s).
delete Delete points from influxDB
export Export existing resources as a template
help Help about any command
org Organization management commands
ping Check the InfluxDB /health endpoint
query Execute a Flux query
restore Restores a backup directory to InfluxDB.
secret Secret management commands
setup Setup instance with initial user, org, bucket
stacks List stack(s) and associated templates. Subcommands manage stacks.
task Task management commands
telegrafs List Telegraf configuration(s). Subcommands manage Telegraf configurations.
template Summarize the provided template
user User management commands
v1 InfluxDB v1 management commands
version Print the influx CLI version
write Write points to InfluxDB
Flags:
-h, --help Help for the influx command
Use “influx [command] --help” for more information about a command.
root@1a6c773353b1:/# influxd
2021-05-23T13:09:51.710270Z info Welcome to InfluxDB {“log_id”: “0UILN~sW000”, “version”: “2.0.6”, “commit”: “4db98b4c9a”, “build_date”: “2021-04-29T16:48:12Z”}
2021-05-23T13:09:51.712413Z info Resources opened {“log_id”: “0UILN~sW000”, “service”: “bolt”, “path”: “/root/.influxdbv2/influxd.bolt”}
2021-05-23T13:09:51.712852Z info Bringing up metadata migrations {“log_id”: “0UILN~sW000”, “service”: “migrations”, “migration_count”: 15}
2021-05-23T13:09:51.737403Z info Using data dir {“log_id”: “0UILN~sW000”, “service”: “storage-engine”, “service”: “store”, “path”: “/root/.influxdbv2/engine/data”}
2021-05-23T13:09:51.737536Z info Compaction settings {“log_id”: “0UILN~sW000”, “service”: “storage-engine”, “service”: “store”, “max_concurrent_compactions”: 1, “throughput_bytes_per_second”: 50331648, “throughput_bytes_per_second_burst”: 50331648}
2021-05-23T13:09:51.737550Z info Open store (start) {“log_id”: “0UILN~sW000”, “service”: “storage-engine”, “service”: “store”, “op_name”: “tsdb_open”, “op_event”: “start”}
2021-05-23T13:09:51.737609Z info Open store (end) {“log_id”: “0UILN~sW000”, “service”: “storage-engine”, “service”: “store”, “op_name”: “tsdb_open”, “op_event”: “end”, “op_elapsed”: “0.061ms”}
2021-05-23T13:09:51.737625Z info Starting retention policy enforcement service {“log_id”: “0UILN~sW000”, “service”: “retention”, “check_interval”: “30m”}
2021-05-23T13:09:51.737637Z info Starting precreation service {“log_id”: “0UILN~sW000”, “service”: “shard-precreation”, “check_interval”: “10m”, “advance_period”: “30m”}
2021-05-23T13:09:51.737676Z info Starting query controller {“log_id”: “0UILN~sW000”, “service”: “storage-reads”, “concurrency_quota”: 1024, “initial_memory_bytes_quota_per_query”: 9223372036854775807, “memory_bytes_quota_per_query”: 9223372036854775807, “max_memory_bytes”: 0, “queue_size”: 1024}
2021-05-23T13:09:51.738990Z info Configuring InfluxQL statement executor (zeros indicate unlimited). {“log_id”: “0UILN~sW000”, “max_select_point”: 0, “max_select_series”: 0, “max_select_buckets”: 0}
2021-05-23T13:09:52.064557Z error Failed to set up TCP listener {“log_id”: “0UILN~sW000”, “service”: “tcp-listener”, “addr”: “:8086”, “error”: “listen tcp :8086: bind: address already in use”}
Error: listen tcp :8086: bind: address already in use
See ‘influxd -h’ for help
进入influxdb时都报同样的问题,连不上influx数据库