如何解决:本地系统不支持基于BPF / cgroup的防火墙。继续进行,而没有生效的防火墙

问题描述 投票:-1回答:1

因此,我尝试使用systemd运行node.js脚本,但出现以下错误:

File /lib/systemd/system/systemd-journald.service:12 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling.
Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.)

我真的不知道该如何解决,我发现this,但它似乎对我不起作用。

node.js systemd
1个回答
0
投票

unsupported IP firewalling中有关systemd-journald.service的警告与您的node.js需求无关。

但是如果您真的想摆脱此消息,则需要启用以下内核选项:

  • CONFIG_BPF_SYSCALL
  • CONFIG_CGROUP_BPF
© www.soinside.com 2019 - 2024. All rights reserved.