Linux Redirecting to /bin/systemctl restart iptables.service
Posted Mr Riven
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Linux Redirecting to /bin/systemctl restart iptables.service相关的知识,希望对你有一定的参考价值。
方案 一
1.昨天碰到一个错误,linux下输入命令:service iptables restart时,
总会报下面一个提示
很简单,这句话的意思就是让你重定向到systemctl然后再启用,白话就是说用systemctl方式启动
解决方法:输入 systemctl start iptables
这个时候表示防火墙已经启动了,你在通过公网访问公网IP:8080就会出现一个小猫头像了
方案二
执行如下命令
systemctl stop firewalld
systemctl mask firewalld
安装iptables-service
yum install iptables-services
设置开机启动
systemctl enable iptables
systemctl stop iptables
systemctl start iptables
systemctl restart iptables
systemctl reload iptables
保存设置
service iptables save
欧克,在执行一下 service iptables start 应该就没有问题了
方案 三
Redirecting to /bin/systemctl restart iptables.service
1,安装systemctl:
yum install iptables-services
2,设置开机启动:
systemctl enable iptables.service
然后就可以执行以下指令了:
systemctl stop iptables
systemctl start iptables
systemctl restart iptables
以上是关于Linux Redirecting to /bin/systemctl restart iptables.service的主要内容,如果未能解决你的问题,请参考以下文章
启动服务的时候总是出现这个提示Redirecting to /bin/systemctl start httpd.service
service vsftpd start 提示:Redirecting to /bin/systemctl start vsftpd.service
nginx启动失败:Redirecting to /bin/systemctl start nginx.service Failed to start nginx.service: Unit not
Linux后台运行jar报错:nohup: ignoring input and redirecting stderr to stdout
Linux后台运行jar报错:nohup: ignoring input and redirecting stderr to stdout