我开始使用 RHEL7 并了解一些 systemd 带来的变化。
有没有办法/sbin/service iptables save
在firewalld中执行?
$ /sbin/service iptables save
The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl.
Run Code Online (Sandbox Code Playgroud)
我可以从文档中找到的最接近的平行是--reload
:
Reload the firewall without loosing state information:
$ firewall-cmd --reload
Run Code Online (Sandbox Code Playgroud)
但它没有明确说明它是否在保存。