WARNING: IPv4 forwarding is disabled. Networking will not work.错误改正
作者:互联网
今天在Centos7上设置静态ip后,在docker上部署elasticserach的时候遇到这个错误:
WARNING: IPv4 forwarding is disabled. Networking will not work
大概意思是不能上网
解决办法
vim /etc/sysctl.conf
在最后一行添加
net.ipv4.ip_forward=1
重启network和docker服务
systemctl restart network
systemctl restart docker
查看是否修改成功
sysctl net.ipv4.ip_forward
以上文章部分转自:https://www.cnblogs.com/nulige/articles/9204841.html
标签:Networking,network,ip,work,will,sysctl,docker,forwarding 来源: https://www.cnblogs.com/baicia/p/16117940.html