美文网首页
CentOS 7 执行service iptables star

CentOS 7 执行service iptables star

作者: adXiang | 来源:发表于2018-01-20 14:47 被阅读2908次

在centOS 7系统中运行

service iptables stop

发现出错

解决办法

1. 使用systemctl

systemctl [start|stop|restart|save|status] iptables.service

2. 安装iptables-services

切换到root用户下,执行:

yum install iptables-services
systemctl enable iptables.service //设置开机启动

之后就可以使用以下指令了:

service iptables [start|stop|restart|save|status]

相关文章

网友评论

      本文标题:CentOS 7 执行service iptables star

      本文链接:https://www.haomeiwen.com/subject/xkrtaxtx.html