```
elasticsearch.service - Elasticsearch
   Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendo
   Active: failed (Result: exit-code) since Tue 2019-08-27 02:13:03 UTC; 3min 47
     Docs: http://www.elastic.co
  Process: 13227 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p ${PID_D
 Main PID: 13227 (code=exited, status=1/FAILURE)

Aug 27 02:12:39 ip-172-31-27-238 systemd[1]: Started Elasticsearch.
Aug 27 02:12:40 ip-172-31-27-238 elasticsearch[13227]: OpenJDK 64-Bit Server VM 
Aug 27 02:13:03 ip-172-31-27-238 systemd[1]: elasticsearch.service: Main process[1]: elasticsearch.service: Main process exited, code=exited, status=1/FAILURE exited, code=exited, status=1/FAILURE
Aug 27 02:13:03 ip-172-31-27-238 systemd[1]: elasticsearch.service: Failed with[1]: elasticsearch.service: Failed with result 'exit-code'.result 'exit-code'.

```

I have installed elasticsearch 7.3 on my EC2 ubuntu 18.04 server. I am trying to access it from another server. It worked fine before I made some changes to elasticsearch.yml. The change I made is like this.

```
# ---------------------------------- Network -----------------------------------
#
# Set the bind address to a specific IP (IPv4 or IPv6):
#
network.host: my elastic ip
#
# Set a custom port for HTTP:
#
http.port: 9200
#
# For more information, consult the network module documentation.

```

I have adjusted JVM heap min and max to 512m because I am using t2.micro.
my reference: <https://dev.to/dance2die/elasticsearch-installation-issue-on-a-free-tier-t2micro-aws-ec2-instance-1o3a>)
Everything worked fine when I curl localhost:9200 before changing network.host. Restarting elasticsearch seems not working. I need help thank you.