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 ”则表示成功了
这时,重启容器即可。
原文链接:https://xiaohost.com/3889.html,转载请注明出处。
评论0