Failed to connect to localhost port 9200: Connection refused

Ohh I say / realized this

[2022-08-26T20:28:32,283][ERROR][o.e.b.Elasticsearch      ] [loganalysisclass1.novalocal] fatal exception while booting Elasticsearch
java.nio.file.AccessDeniedException: /var/run/elasticsearch

Exact how did you install elasticsearch using what method and did you change any file permissions

See this thread

This is how my permissions look for

/var/run/elasticsearch

drwxr-xr-x  2 elasticsearch elasticsearch   60 Aug 22 16:54 elasticsearch

so perhaps you need

sudo chown -R elasticsearch:elasticsearch /var/run/elasticsearch