After I uncomment xpack.security.enabled: true line in elasticsearch.service Failed to start Elasticsearch.
root@kibana:~# systemctl status elasticsearch.service
● elasticsearch.service - Elasticsearch
Loaded: loaded (/lib/systemd/system/elasticsearch.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2023-07-31 07:59:44 UTC; 7min ago
Docs: https://www.elastic.co
Process: 1468812 ExecStart=/usr/share/elasticsearch/bin/systemd-entrypoint -p ${PID_DIR}/elasticsearch.pid --quiet >
Main PID: 1468812 (code=exited, status=78)
Jul 31 07:59:28 kibana systemd[1]: Starting Elasticsearch...
Jul 31 07:59:44 kibana systemd-entrypoint[1468812]: ERROR: [1] bootstrap checks failed. You must address the points des>
Jul 31 07:59:44 kibana systemd-entrypoint[1468812]: bootstrap check failure [1] of [1]: Transport SSL must be enabled i>
Jul 31 07:59:44 kibana systemd-entrypoint[1468812]: ERROR: Elasticsearch did not exit normally - check the logs at /var>
Jul 31 07:59:44 kibana systemd[1]: elasticsearch.service: Main process exited, code=exited, status=78/CONFIG
Jul 31 07:59:44 kibana systemd[1]: elasticsearch.service: Failed with result 'exit-code'.
Jul 31 07:59:44 kibana systemd[1]: Failed to start Elasticsearch.