Change localhost to ip address on Centos 7

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

What are the logs when it is failing.

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

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]#

Please format your code, logs or configuration files using </> icon as explained in this guide 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:

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

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

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

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