How to check elasticsearch current version after login to linux ? How to upgrade it with new version?

Hi ,
I am new to elk in linux.
How to check elasticsearch current version after login to linux ? I want to upgrade it with new version also .

curl ESHOST:9200 will give you the version.

Its not showing the version details

Please don't post pictures of text. It's hard to read and cannot be debugged or searched.

That is usually the response when you're trying to curl on HTTP when it should be HTTPS


Its showing as connection refused.
curl: (7) Failed connect to 10.246.88.54:9200; Connection refused

Is Elasticsearch running?
What does your elasticsearch.yml look like?