Elasticsearch error curl: (7) Failed to connect to localhost port 9200: Connection refused but localhost:9200 works on browser

Where could I get it please ? /var/log/elasticsearch/ is empty