k8s报错:WARNING: IPv4 forwarding is disabled. Networking will not work.

2021年10月10日学习compose安装Django时报的错误

一、故障描述

看标出来的错误,当时因为是警告我就错过了,找了半天pip源

 ---> [Warning] IPv4 forwarding is disabled. Networking will not work.

image-20211010171441154

二、解决方案

编辑配置文件,添加如下代码

vi /usr/lib/sysctl.d/00-system.conf
net.ipv4.ip_forward=1

#重启网卡
systemctl restart network

三、参考资料

docker报错

配置PIP国内源

配置PIP国内源II

posted @ 2021-10-10 17:21  努力吧阿团  阅读(80)  评论(0编辑  收藏  举报