# Change localhost to ip address on Centos 7

**URL:** <https://discuss.elastic.co/t/change-localhost-to-ip-address-on-centos-7/182172>\
**Category:** Elasticsearch\
**Created:** [May 22, 2019, 8:26am UTC](https://discuss.elastic.co/t/change-localhost-to-ip-address-on-centos-7/182172 "2019-05-22T08:26:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![omardawed](https://avatars.discourse-cdn.com/v4/letter/o/c4cdca/32.png) [@omardawed](https://discuss.elastic.co/u/omardawed)\
**Post date:** [May 22, 2019, 8:26am UTC](https://discuss.elastic.co/t/change-localhost-to-ip-address-on-centos-7/182172/1 "2019-05-22T08:26:15Z")

</div>

hello,  
i have installed elasticsearch logstash kibana and filebeat, metricbeat version 7.0.1; elastic stack works fine.  
elasticsearch run on localhost, but when i change localhost to my ip address elasticsearch fail.  
i edit the file /etc/elasticsearch and change this parameter to:  
network.host 192.168.10.234

how to slove this problem ?  
i have disable the firewall and selinux also

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 22, 2019, 9:20am UTC](https://discuss.elastic.co/t/change-localhost-to-ip-address-on-centos-7/182172/2 "2019-05-22T09:20:54Z")

</div>

What are the logs when it is failing.

---

<div class="post-metadata">

**Author:** ![omardawed](https://avatars.discourse-cdn.com/v4/letter/o/c4cdca/32.png) [@omardawed](https://discuss.elastic.co/u/omardawed)\
**Post date:** [May 22, 2019, 9:32am UTC](https://discuss.elastic.co/t/change-localhost-to-ip-address-on-centos-7/182172/3 "2019-05-22T09:32:56Z")

</div>

this is log files when it fails , the http.port : 9200

```auto
2019-05-22T10:30:43,447][INFO][o.e.x.s.a.s.FileRolesStore] [elk7] parsed [0] roles from file [/etc/elasticsearch/roles.yml]
[2019-05-22T10:30:45,882][INFO][o.e.x.m.p.l.CppLogMessageHandler] [elk7] [controller/15532] [Main.cc@109] controller (64 bit): Version 7.0.1 (Build 6a88928693d862) Copyright (c) 2019 Elasticsearch BV
[2019-05-22T10:30:46,832][DEBUG][o.e.a.ActionModule] [elk7] Using REST wrapper from plugin org.elasticsearch.xpack.security.Security
[2019-05-22T10:30:49,298][INFO][o.e.d.DiscoveryModule] [elk7] using discovery type [zen] and seed hosts providers [settings]
[2019-05-22T10:30:51,432][INFO][o.e.n.Node] [elk7] initialized
[2019-05-22T10:30:51,433][INFO][o.e.n.Node] [elk7] starting ...
[2019-05-22T10:30:51,696][INFO][o.e.t.TransportService] [elk7] publish_address {192.168.10.234:9300}, bound_addresses {192.168.10.234:9300}
[2019-05-22T10:30:51,712][INFO][o.e.b.BootstrapChecks] [elk7] bound or publishing to a non-loopback address, enforcing bootstrap checks
[2019-05-22T10:30:51,786][ERROR][o.e.b.Bootstrap] [elk7] node validation exception
[1] bootstrap checks failed
[1]: memory locking requested for elasticsearch process but memory is not locked
[2019-05-22T10:30:51,793][INFO][o.e.n.Node] [elk7] stopping ...
[2019-05-22T10:30:51,895][INFO][o.e.n.Node] [elk7] stopped
[2019-05-22T10:30:51,896][INFO][o.e.n.Node] [elk7] closing ...
[2019-05-22T10:30:51,929][INFO][o.e.n.Node] [elk7] closed
[2019-05-22T10:30:51,934][INFO][o.e.x.m.p.NativeController] [elk7] Native controller process has stopped - no new native processes can be started
[root@elk7 elasticsearch]#

```

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 22, 2019, 2:08pm UTC](https://discuss.elastic.co/t/change-localhost-to-ip-address-on-centos-7/182172/4 "2019-05-22T14:08:45Z")

</div>

Please format your code, logs or configuration files using `</>` icon as explained in [this guide](https://discuss.elastic.co/t/about-the-elasticsearch-category/21) and not the citation button. It will make your post more readable.

Or use markdown style like:

````
```
CODE
```

````

This is the icon to use if you are not using markdown format:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/e/7e6e239431ec2d71cbf1beef741f2e93e7cc762c.jpg)

There's a live preview panel for exactly this reasons.

Lots of people read these forums, and many of them will simply skip over a post that is difficult to read, because it's just too large an investment of their time to try and follow a wall of badly formatted text.  
If your goal is to get an answer to your questions, it's in your interest to make it as easy to read and understand as possible.

I updated your post but please do it next time.

Read [https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html)

The problem you have to search for is indicated clearly in the logs:

```auto
[1] bootstrap checks failed
[1]: memory locking requested for elasticsearch process but memory is not locked

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 19, 2019, 2:09pm UTC](https://discuss.elastic.co/t/change-localhost-to-ip-address-on-centos-7/182172/5 "2019-06-19T14:09:01Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
