Problem Enable TLS encryption

I had use the following command with indicates your web page and it does not work
to see who can help me.
/home/server# sudo openssl req -x509 -nodes -newkey rsa:2048 \

-keyout /etc/ssl/influxdb-selfsigned.key
-out /etc/ssl/influxdb-selfsigned.crt
-days 365
/home/server# cd /etc/ssl/
root@ubuntuoasis:/etc/ssl# ls
certs influxdb-selfsigned.crt influxdb-selfsigned.key openssl.cnf private
root@ubuntuoasis:/etc/ssl# sudo chmod 644 /etc/ssl/influxdb-selfsigned.crt
root@ubuntuoasis:/etc/ssl# sudo chmod 600 /etc/ssl/influxdb-selfsigned.key
root@ubuntuoasis:/etc/ssl# influxd --tls-cert=/etc/ssl/influxdb-selfsigned.crt
^[[D^[[D^[[D2021-09-28T11:16:49.187216Z info Welcome to InfluxDB {“log_id”: “0Ws1n1dG000”, “version”: “2.0.8”, “commit”: “e91d41810f”, “build_date”: “2021-08-13T18:22:30Z”}
2021-09-28T11:16:49.313723Z info Resources opened {“log_id”: “0Ws1n1dG000”, “service”: “bolt”, “path”: “/root/.influxdbv2/influxd.bolt”}
2021-09-28T11:16:49.318021Z info Bringing up metadata migrations {“log_id”: “0Ws1n1dG000”, “service”: “migrations”, “migration_count”: 15}
2021-09-28T11:16:49.561838Z info Using data dir {“log_id”: “0Ws1n1dG000”, “service”: “storage-engine”, “service”: “store”, “path”: “/root/.influxdbv2/engine/data”}
2021-09-28T11:16:49.561978Z info Compaction settings {“log_id”: “0Ws1n1dG000”, “service”: “storage-engine”, “service”: “store”, “max_concurrent_compactions”: 1, “throughput_bytes_per_second”: 50331648, “throughput_bytes_per_second_burst”: 50331648}
2021-09-28T11:16:49.562004Z info Open store (start) {“log_id”: “0Ws1n1dG000”, “service”: “storage-engine”, “service”: “store”, “op_name”: “tsdb_open”, “op_event”: “start”}
2021-09-28T11:16:49.562080Z info Open store (end) {“log_id”: “0Ws1n1dG000”, “service”: “storage-engine”, “service”: “store”, “op_name”: “tsdb_open”, “op_event”: “end”, “op_elapsed”: “0.075ms”}
2021-09-28T11:16:49.562112Z info Starting retention policy enforcement service {“log_id”: “0Ws1n1dG000”, “service”: “retention”, “check_interval”: “30m”}
2021-09-28T11:16:49.562139Z info Starting precreation service {“log_id”: “0Ws1n1dG000”, “service”: “shard-precreation”, “check_interval”: “10m”, “advance_period”: “30m”}
2021-09-28T11:16:49.562186Z info Starting query controller {“log_id”: “0Ws1n1dG000”, “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-09-28T11:16:49.584443Z info Configuring InfluxQL statement executor (zeros indicate unlimited). {“log_id”: “0Ws1n1dG000”, “max_select_point”: 0, “max_select_series”: 0, “max_select_buckets”: 0}
2021-09-28T11:16:49.939998Z info Starting {“log_id”: “0Ws1n1dG000”, “service”: “telemetry”, “interval”: “8h”}
2021-09-28T11:16:49.941074Z error Failed to set up TCP listener {“log_id”: “0Ws1n1dG000”, “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
root@ubuntuoasis:/etc/ssl# influxd --tls-cert=/etc/ssl/influxdb-selfsigned.crt --tls-key=/etc/ssl/influxdb-selfsigned.key
2021-09-28T11:17:50.019288Z info Welcome to InfluxDB {“log_id”: “0Ws1qkGl000”, “version”: “2.0.8”, “commit”: “e91d41810f”, “build_date”: “2021-08-13T18:22:30Z”}
2021-09-28T11:17:50.083342Z info Resources opened {“log_id”: “0Ws1qkGl000”, “service”: “bolt”, “path”: “/root/.influxdbv2/influxd.bolt”}
2021-09-28T11:17:50.121040Z info Using data dir {“log_id”: “0Ws1qkGl000”, “service”: “storage-engine”, “service”: “store”, “path”: “/root/.influxdbv2/engine/data”}
2021-09-28T11:17:50.121125Z info Compaction settings {“log_id”: “0Ws1qkGl000”, “service”: “storage-engine”, “service”: “store”, “max_concurrent_compactions”: 1, “throughput_bytes_per_second”: 50331648, “throughput_bytes_per_second_burst”: 50331648}
2021-09-28T11:17:50.121372Z info Open store (start) {“log_id”: “0Ws1qkGl000”, “service”: “storage-engine”, “service”: “store”, “op_name”: “tsdb_open”, “op_event”: “start”}
2021-09-28T11:17:50.121481Z info Open store (end) {“log_id”: “0Ws1qkGl000”, “service”: “storage-engine”, “service”: “store”, “op_name”: “tsdb_open”, “op_event”: “end”, “op_elapsed”: “0.167ms”}
2021-09-28T11:17:50.121524Z info Starting retention policy enforcement service {“log_id”: “0Ws1qkGl000”, “service”: “retention”, “check_interval”: “30m”}
2021-09-28T11:17:50.121544Z info Starting precreation service {“log_id”: “0Ws1qkGl000”, “service”: “shard-precreation”, “check_interval”: “10m”, “advance_period”: “30m”}
2021-09-28T11:17:50.121662Z info Starting query controller {“log_id”: “0Ws1qkGl000”, “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-09-28T11:17:50.127801Z info Configuring InfluxQL statement executor (zeros indicate unlimited). {“log_id”: “0Ws1qkGl000”, “max_select_point”: 0, “max_select_series”: 0, “max_select_buckets”: 0}
2021-09-28T11:17:50.446747Z info Starting {“log_id”: “0Ws1qkGl000”, “service”: “telemetry”, “interval”: “8h”}
2021-09-28T11:17:50.446880Z error Failed to set up TCP listener {“log_id”: “0Ws1qkGl000”, “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
root@ubuntuoasis:/etc/ssl#

Hello @juanrodrigues,
It looks like you already are using port 8086.
I’d run sudo lsof -i:8086 to see what’s running on that port.

hello Anaisdg
sudo lsof -i:8086
[sudo] password for server:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
influxd 998 influxdb 37u IPv6 32431 0t0 TCP *:8086 (LISTEN)

I thank you for helping me

sudo service influxdb stop
server@ubuntuoasis:/var/lib/influxdb$ sudo service influxdb status
● influxdb.service - InfluxDB is an open-source, distributed, time series database
Loaded: loaded (/lib/systemd/system/influxdb.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Thu 2021-09-30 14:36:13 UTC; 3min 48s ago
Docs: InfluxDB OSS 2.6 Documentation
Process: 40856 ExecStart=/usr/lib/influxdb/scripts/influxd-systemd-start.sh (code=exited, status=0/SUCCESS)
Main PID: 40857 (code=killed, signal=TERM)

sep 30 14:35:50 ubuntuoasis systemd[1]: Starting InfluxDB is an open-source, distributed, time series database…
sep 30 14:35:51 ubuntuoasis influxd-systemd-start.sh[40856]: InfluxDB started
sep 30 14:35:51 ubuntuoasis systemd[1]: Started InfluxDB is an open-source, distributed, time series database.
sep 30 14:36:13 ubuntuoasis systemd[1]: Stopping InfluxDB is an open-source, distributed, time series database…
sep 30 14:36:13 ubuntuoasis systemd[1]: influxdb.service: Succeeded.
sep 30 14:36:13 ubuntuoasis systemd[1]: Stopped InfluxDB is an open-source, distributed, time series database.
server@ubuntuoasis:/var/lib/influxdb$ influxd --tls-cert /etc/ssl/influxdb-selfsigned1.crt
2021-09-30T14:40:50.166105Z info Welcome to InfluxDB {“log_id”: “0WunG1y0000”, “version”: “2.0.8”, “commit”: “e91d41810f”, “build_date”: “2021-08-13T18:22:30Z”}
2021-09-30T14:40:51.138308Z error Failed opening bolt {“log_id”: “0WunG1y0000”, “error”: “unable to open boltdb: timeout”}
Error: unable to open boltdb: timeout
See ‘influxd -h’ for help