WARNING: IPv4 forwarding is disabled. Networking will not work.

  

centos 7.6 docker启动 Elasticsearch报错
WARNING: IPv4 forwarding is disabled. Networking will not work.

解决办法:

1
vi /etc/sysctl.conf

1
2
# Controls IP packet forwarding
net.ipv4.ip_forward = 0

修改为

1
net.ipv4.ip_forward=1

重启network服务

1
systemctl restart network

查看是否修改成功

1
sysctl net.ipv4.ip_forward

如果返回为“ net.ipv4.ip_forward = 1 ”则表示成功了

这时,重启容器即可。


  •   正在提交中,请稍候...
      评论提交成功
    回复 的评论,点击取消回复

    账号密码登录